features/steps/using_steps.rb in cucumber-nagios-0.8.6 vs features/steps/using_steps.rb in cucumber-nagios-0.8.7
- old
+ new
@@ -31,5 +31,12 @@
Then /^"([^"]*)" in the "([^"]*)" project should not exist$/ do |file, project_name|
filename = File.join(file, project_name)
File.exists?(filename).should be_false
end
+
+Then /^the "([^"]*)" feature on "([^"]*)" should produce multiline output$/ do |feature, site|
+ @output = `cd /tmp/#{@project_name} ; bin/cucumber-nagios features/#{site}/#{feature}.feature`
+ $?.exitstatus.should == 0
+
+ @output.split("\n").size.should > 1
+end