custom_webrat_steps.rb
293 Bytes
When /^I should see "([^\"]+)" link$/ do |link|
response.should have_selector("a", :content => link)
end
When /^I should not see "([^\"]+)" link$/ do |link|
response.should_not have_selector("a", :content => link)
end
When /^I wait (\d+) seconds$/ do |seconds|
sleep seconds.to_i
end