diff --git a/middleman-core/lib/middleman-core/step_definitions/server_steps.rb b/middleman-core/lib/middleman-core/step_definitions/server_steps.rb index c61ec39d..d21c87a2 100644 --- a/middleman-core/lib/middleman-core/step_definitions/server_steps.rb +++ b/middleman-core/lib/middleman-core/step_definitions/server_steps.rb @@ -91,6 +91,10 @@ 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 /^I should see "([^\"]*)" lines$/ do |lines| expect(@browser.last_response.body.chomp.split($/).length).to eq(lines.to_i) end