mirror of
https://github.com/middleman/middleman.git
synced 2022-11-09 12:20:27 -05:00
Merge pull request #1337 from dg-vrnetze/feature/new_server_steps
Added some new steps to test middleman applications
This commit is contained in:
commit
b39b913cfb
1 changed files with 8 additions and 0 deletions
|
@ -91,6 +91,14 @@ Then /^I should not see "([^\"]*)"$/ do |expected|
|
|||
expect(@browser.last_response.body).to_not include(expected)
|
||||
end
|
||||
|
||||
Then /^I should not see:$/ do |expected|
|
||||
expect(@browser.last_response.body).to_not include(expected.chomp)
|
||||
end
|
||||
|
||||
Then /^the status code should be "([^\"]*)"$/ do |expected|
|
||||
expect(@browser.last_response.status).to eq expected.to_i
|
||||
end
|
||||
|
||||
Then /^I should see "([^\"]*)" lines$/ do |lines|
|
||||
expect(@browser.last_response.body.chomp.split($/).length).to eq(lines.to_i)
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue