lib/petitest/texts/test_counts_text.rb in petitest-0.1.3 vs lib/petitest/texts/test_counts_text.rb in petitest-0.2.0

- old
+ new

@@ -25,21 +25,15 @@ def body [ text_of_count_of_test_cases, text_of_count_of_passed_test_cases, text_of_count_of_failed_test_cases, - text_of_count_of_aborted_test_cases, text_of_count_of_skipped_test_cases, ].join("\n") end # @return [Integer] - def count_of_aborted_test_cases - test_cases.select(&:aborted?).length - end - - # @return [Integer] def count_of_failed_test_cases test_cases.select(&:failed?).length end # @return [Integer] @@ -66,16 +60,11 @@ def max_digits_length @max_digits_length ||= count_of_test_cases.to_s.length end # @return [String] - def text_of_count_of_aborted_test_cases - colorize("%#{max_digits_length}d errors" % count_of_aborted_test_cases, :error) - end - - # @return [String] def text_of_count_of_failed_test_cases - colorize("%#{max_digits_length}d failures" % count_of_failed_test_cases, :failure) + colorize("%#{max_digits_length}d failures" % count_of_failed_test_cases, :error) end # @return [String] def text_of_count_of_passed_test_cases colorize("%#{max_digits_length}d passes" % count_of_passed_test_cases, :pass)