Skip to content

Commit

Permalink
Use Result#ok? in the Rerun Formatter
Browse files Browse the repository at this point in the history
  • Loading branch information
brasmusson committed Jun 11, 2015
1 parent d47f615 commit fc356b1
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 if result.ok?(@options[:strict])
@failures[test_case.location.file] ||= []
@failures[test_case.location.file] << test_case.location.line
end
Expand Down

0 comments on commit fc356b1

Please sign in to comment.