Support should not see block
This commit is contained in:
parent
15d6210df8
commit
6dc7eb6353
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue