Support should not see block

This commit is contained in:
Max Meyer 2014-07-29 09:03:56 +02:00
parent 15d6210df8
commit 6dc7eb6353

View file

@ -91,6 +91,10 @@ Then /^I should not see "([^\"]*)"$/ do |expected|
expect(@browser.last_response.body).to_not include(expected) expect(@browser.last_response.body).to_not include(expected)
end end
Then /^I should not see:$/ do |expected|
expect(@browser.last_response.body).to_not include(expected.chomp)
end
Then /^I should see "([^\"]*)" lines$/ do |lines| Then /^I should see "([^\"]*)" lines$/ do |lines|
expect(@browser.last_response.body.chomp.split($/).length).to eq(lines.to_i) expect(@browser.last_response.body.chomp.split($/).length).to eq(lines.to_i)
end end