features/steps/packaging-lintian_steps.rb in flapjack-0.7.27 vs features/steps/packaging-lintian_steps.rb in flapjack-0.7.28

- old
+ new

@@ -10,18 +10,18 @@ @output.split.each do |file| `head -n 1 #{file}`.should =~ /^#{string}\s*$/ end end -When /^I run "([^"]*)"$/ do |cmd| +When /^I run `([^"]*)`$/ do |cmd| #bin_path = '/usr/bin' #command = "#{bin_path}/#{cmd}" #@output = `#{command}` @output = `#{cmd} 2>&1` @exit_status = $?.exitstatus end -Then /^the exit status should be (\d+)$/ do |number| +Then /^the exit value should be (\d+)$/ do |number| @exit_status.should == number.to_i end