summaryrefslogtreecommitdiff
path: root/features/steps/result_steps.rb
blob: 0978c13299536d843034008e604aa528be06ae6f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
Then /^I should see "(.*)"$/ do |text|
  response.body.to_s.should =~ /#{text}/m
end
 
Then /^I should not see "(.*)"$/ do |text|
  response.body.to_s.should_not =~ /#{text}/m
end
 
Then /^I should see an? (\w+) message$/ do |message_type|
  response.should have_xpath("//*[@class='#{message_type}']")
end
 
Then /^the (.*) ?request should fail/ do |_|
  response.should_not be_successful
end