diff --git a/lib/cucumber/formatter/rerun.rb b/lib/cucumber/formatter/rerun.rb index e1cb06578a..c05cb26565 100644 --- a/lib/cucumber/formatter/rerun.rb +++ b/lib/cucumber/formatter/rerun.rb @@ -12,7 +12,7 @@ def initialize(runtime, path_or_io, options) end def after_test_case(test_case, result) - return unless result.non_zero_exit_status?(@options[:strict]) + return if result.ok?(@options[:strict]) @failures[test_case.location.file] ||= [] @failures[test_case.location.file] << test_case.location.line end