lib/ocrunner/test_suite.rb in ocrunner-0.2.5 vs lib/ocrunner/test_suite.rb in ocrunner-0.3.0
- old
+ new
@@ -8,7 +8,15 @@
def initialize(name)
@name = name
@cases = []
end
+
+ def failures?
+ @cases.any? {|kase| !kase.passed?}
+ end
+
+ def failed_cases
+ @cases.reject {|kase| kase.passed?}
+ end
end
end
\ No newline at end of file