Skip to content

Commit

Permalink
Use Result#non_zero_exit_status? in the Rerun Formatter
Browse files Browse the repository at this point in the history
  • Loading branch information
brasmusson committed May 31, 2015
1 parent d47f615 commit 2aa5f78
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/cucumber/formatter/rerun.rb
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ def initialize(runtime, path_or_io, options)
end

def after_test_case(test_case, result)
return if result.passed? || result.skipped? || !@options[:strict] && (result.pending? || result.undefined?)
return unless result.non_zero_exit_status?(@options[:strict])
@failures[test_case.location.file] ||= []
@failures[test_case.location.file] << test_case.location.line
end
Expand Down

0 comments on commit 2aa5f78

Please sign in to comment.