features/steps/using_steps.rb in cucumber-nagios-0.8.9 vs features/steps/using_steps.rb in cucumber-nagios-0.8.10
- old
+ new
@@ -33,10 +33,9 @@
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
-
+ command = "cd /tmp/#{@project_name} ; bin/cucumber-nagios features/#{site}/#{feature}.feature"
+ @output = `#{command}`
@output.split("\n").size.should > 1
end