Sha256: 4a1b4bb084abb24b038ad4a75ba5e1090bc605ba681fdb2128e496b83aa2c383
Contents?: true
Size: 1.01 KB
Versions: 8
Compression:
Stored size: 1.01 KB
Contents
######################################################################################################################## # # Variation on Aruba's output steps # ######################################################################################################################## Then /^the exit status should be (\d+)$/ do |exit_status| @last_exit_status.should == exit_status.to_i end Then /^the exit status does not be (\d+)$/ do |exit_status| @last_exit_status.should_not == exit_status.to_i end Then /^it should (pass|fail) with:$/ do |pass_fail, partial_output| self.__send__("assert_#{pass_fail}ing_with", partial_output) end Then /^it should (pass|fail) with exactly:$/ do |pass_fail, exact_output| assert_exit_status_and_output(pass_fail == "pass", exact_output, true) end Then /^it should (pass|fail) with regexp?:$/ do |pass_fail, partial_output| Then "the output matches:", partial_output if pass_fail == 'pass' @last_exit_status.should == 0 else @last_exit_status.should_not == 0 end end
Version data entries
8 entries across 8 versions & 1 rubygems