Re: [rspec-users] [Cucumber][Webrat] Using LinkLocator in cucumber step definitions

2009-06-23 Thread Ben Lovell
On Tue, Jun 23, 2009 at 5:00 PM, mBread wrote: > I am wanting to specify "Then I should not see a "New item" link" in a > cucumber scenario. Is it possible to use Webrat::Locators.find_link (as used > in click_link) in a cucumber step definition? Or is there some reason why I > shouldn't assert t

[rspec-users] [Cucumber][Webrat] Using LinkLocator in cucumber step definitions

2009-06-23 Thread mBread
I am wanting to specify "Then I should not see a "New item" link" in a cucumber scenario. Is it possible to use Webrat::Locators.find_link (as used in click_link) in a cucumber step definition? Or is there some reason why I shouldn't assert the absence of a link? I could just use response.should_