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_not contain(text) but I want to make sure it's a link that it's looking for, as the text may happen to appear elsewhere in the middle of a sentance. Thanks -- View this message in context: http://www.nabble.com/-Cucumber--Webrat--Using-LinkLocator-in-cucumber-step-definitions-tp24167354p24167354.html Sent from the rspec-users mailing list archive at Nabble.com.
_______________________________________________ rspec-users mailing list rspec-users@rubyforge.org http://rubyforge.org/mailman/listinfo/rspec-users