lib/generators/project/features/steps/result_steps.rb in auxesis-cucumber-nagios-0.2.8 vs lib/generators/project/features/steps/result_steps.rb in auxesis-cucumber-nagios-0.3.1

- old
+ new

@@ -8,8 +8,12 @@ Then /^I should see an? (\w+) message$/ do |message_type| response.should have_xpath("//*[@class='#{message_type}']") end +Then /^the (.*) ?request should succeed/ do |_| + response.should be_successful +end + Then /^the (.*) ?request should fail/ do |_| response.should_not be_successful end