From fc356b18fa928276f6582335669ba8931216be85 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bj=C3=B6rn=20Rasmusson?= Date: Sun, 31 May 2015 16:34:59 +0200 Subject: [PATCH] Use Result#ok? in the Rerun Formatter --- lib/cucumber/formatter/rerun.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/cucumber/formatter/rerun.rb b/lib/cucumber/formatter/rerun.rb index 93c76defc9..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 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