Re: [rspec-users] webrat within selector

2008-10-14 Thread Bryan Helmkamp
Jonathan, This should work: within #user_43 do |scope| scope.click_link Edit end If you're using Rails' record identification HTML helpers, you can do something like within('#' + dom_id(user)) to save some typing. Scott's right that I'd recommend avoiding targeting IDs when possible, but

Re: [rspec-users] rspec - undefined method `describe' for main:Object

2008-10-14 Thread Mano ah
Thank you Pat Maddox,Douglas Adams,Luis Lavena,Scott Taylor for your kind help. I have installed the plugins rspec and rspec-rails using git. I was not running the spec controller from the root thats the main problem. I followed all of your useful suggestions and able to build and run a

[rspec-users] Any Plans on Tag support in Cucumber

2008-10-14 Thread wei wei
Hi, ThoughtWorks just released the auto test toolset Twist, the tagging feature seems pretty useful, http://studios.thoughtworks.com/twist-agile-test-automation/twist-features-and-benefits Tags allow you to organize test suites in multiple dimensions. With tags, you can include a test in a smoke

Re: [rspec-users] webrat within selector

2008-10-14 Thread Jonathan Linowes
thanks guys yeah, my case is a step like When I click on the $tab tab... I want to make sure its a link in a tab, not some other link on the page with the same text On Oct 14, 2008, at 2:13 AM, Bryan Helmkamp wrote: Jonathan, This should work: within #user_43 do |scope|

Re: [rspec-users] Any Plans on Tag support in Cucumber

2008-10-14 Thread aslak hellesoy
On Tue, Oct 14, 2008 at 8:47 AM, wei wei [EMAIL PROTECTED] wrote: Hi, ThoughtWorks just released the auto test toolset Twist, the tagging feature seems pretty useful, http://studios.thoughtworks.com/twist-agile-test-automation/twist-features-and-benefits Tags allow you to organize test

Re: [rspec-users] Cucumber: Migrating RSpec Story L isteners to Cucumber

2008-10-14 Thread Thomas Marek
No advice on that? Should i open a ticket on Lighthouse? I also would try to implement that... Thanks, Thomas -Ursprüngliche Nachricht- Von: Thomas Marek [EMAIL PROTECTED] Gesendet: 09.10.08 15:25:14 An: rspec-users rspec-users@rubyforge.org Betreff: [rspec-users] Cucumber:

Re: [rspec-users] Cucumber: Migrating RSpec Story L isteners to Cucumber

2008-10-14 Thread Thomas Marek
I opened a ticket for that: http://rspec.lighthouseapp.com/projects/16211/tickets/44-ability-to-teardown-failing-or-pending-scenarios-in-different-ways Thomas -Ursprüngliche Nachricht- Von: Michael Latta [EMAIL PROTECTED] Gesendet: 14.10.08 17:31:58 An: rspec-users

[rspec-users] [cucumber] Is it possbile to access scenario name in steps?

2008-10-14 Thread wei wei
One of my examples now is like below ### case_1001.feature Feature: case_1001 Scenario: 10001 Given the network is CBS Given the data : Then there should be an asset with internal id and title1 in DB -- Wei Wei ___ rspec-users mailing

[rspec-users] [cucumber] Is it possbile to access scenario name in steps?

2008-10-14 Thread wei wei
One of my examples now is like below ### 1001.feature Feature: 1001 1001 is the internal id for QAs to identify case Scenario: 1001 Given the title is function1_1001 . ### function1.steps Given /the title is (.*)/ do |title| @title = title end Actually the title is generated

Re: [rspec-users] Cucumber: Migrating RSpec Story Listeners to Cucumber

2008-10-14 Thread Michael Latta
Why use a cucumber_scenario method when the After method could just pass it to the block? Michael On Oct 14, 2008, at 1:31 AM, aslak hellesoy wrote: On Tue, Oct 14, 2008 at 9:38 AM, Thomas Marek [EMAIL PROTECTED] wrote: No advice on that? Should i open a ticket on Lighthouse? Please

Re: [rspec-users] [cucumber] Is it possbile to access scenario name in steps?

2008-10-14 Thread aslak hellesoy
On Tue, Oct 14, 2008 at 6:40 PM, wei wei [EMAIL PROTECTED] wrote: One of my examples now is like below ### 1001.feature Feature: 1001 1001 is the internal id for QAs to identify case Scenario: 1001 Given the title is function1_1001 . ### function1.steps Given /the title

Re: [rspec-users] Cucumber: Migrating RSpec Story Listeners to Cucumber

2008-10-14 Thread David Chelimsky
On Tue, Oct 14, 2008 at 1:49 PM, aslak hellesoy [EMAIL PROTECTED] wrote: On Tue, Oct 14, 2008 at 5:29 PM, Michael Latta [EMAIL PROTECTED] wrote: Why use a cucumber_scenario method when the After method could just pass it to the block? Good idea! Can the Before do the same? Then you could

Re: [rspec-users] Cucumber: Migrating RSpec Story Listeners to Cucumber

2008-10-14 Thread Zach Dennis
On Tue, Oct 14, 2008 at 3:39 PM, David Chelimsky [EMAIL PROTECTED] wrote: On Tue, Oct 14, 2008 at 1:49 PM, aslak hellesoy [EMAIL PROTECTED] wrote: On Tue, Oct 14, 2008 at 5:29 PM, Michael Latta [EMAIL PROTECTED] wrote: Why use a cucumber_scenario method when the After method could just pass it

Re: [rspec-users] Cucumber: Migrating RSpec Story Listeners to Cucumber

2008-10-14 Thread aslak hellesoy
On Tue, Oct 14, 2008 at 9:52 PM, Zach Dennis [EMAIL PROTECTED] wrote: On Tue, Oct 14, 2008 at 3:39 PM, David Chelimsky [EMAIL PROTECTED] wrote: On Tue, Oct 14, 2008 at 1:49 PM, aslak hellesoy [EMAIL PROTECTED] wrote: On Tue, Oct 14, 2008 at 5:29 PM, Michael Latta [EMAIL PROTECTED] wrote: Why

Re: [rspec-users] Cucumber: Migrating RSpec Story Listeners to Cucumber

2008-10-14 Thread aslak hellesoy
On Tue, Oct 14, 2008 at 5:29 PM, Michael Latta [EMAIL PROTECTED] wrote: Why use a cucumber_scenario method when the After method could just pass it to the block? Good idea! Michael On Oct 14, 2008, at 1:31 AM, aslak hellesoy wrote: On Tue, Oct 14, 2008 at 9:38 AM, Thomas Marek [EMAIL

[rspec-users] Just a quick question on David's new-controller-examples

2008-10-14 Thread Shane Mingins
http://blog.davidchelimsky.net/2008/7/1/new-controller-examples BTW great post, thanks :-) I was wondering the thinking of this one describe responding to POST /accounts do describe with failed save do it should create a new account do

[rspec-users] how to play with rSpec using irb

2008-10-14 Thread Alr Alr
Hi, Is there any way to experiment with rSpec in irb or script/console session? Tried this: require 'spec' = true [1,2,3].should have(3).items = NoMethodError: undefined method `have' for main:Object from (irb):4 from