lib/fitting/report/console.rb in fitting-2.17.0 vs lib/fitting/report/console.rb in fitting-2.18.0

- old
+ new

@@ -29,12 +29,13 @@ doc_res += "tests_without_actions: #{@tests_without_actions.size}\n" doc_res += "tests_without_responses: #{@tests_without_responses.size}\n" end def good? - return false if @tests_without_prefixes.size != 0 - return false if @tests_without_actions.size != 0 - return false if @tests_without_responses.size != 0 + return false unless @tests_without_prefixes.empty? + return false unless @tests_without_actions.empty? + return false unless @tests_without_responses.empty? + @good end end end end