Permalink
Browse files

remove double negative condition

  • Loading branch information...
qrush committed Jan 12, 2012
1 parent 775dda8 commit 5a5743cd8b36f85a6270b149236d431c92a4a214
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/m/runner.rb
View
@@ -57,7 +57,7 @@ def suites
# Use some janky internal test/unit API to group test methods by test suite.
Test::Unit::TestCase.test_suites.inject({}) do |suites, suite_class|
# End up with a hash of suite class name to an array of test methods, so we can later find them and ignore empty test suites
- suites[suite_class] = suite_class.test_methods unless suite_class.test_methods.empty?
+ suites[suite_class] = suite_class.test_methods if suite_class.test_methods.size > 0
suites
end
end

0 comments on commit 5a5743c

Please sign in to comment.