Permalink
Browse files

Merge pull request #18 from samsoffes/master

Check for minitest first
  • Loading branch information...
2 parents c329967 + 18d567c commit 004bca431679fd05ae5f7f6494d9b6266ec87519 @qrush committed Jul 31, 2012
Showing with 3 additions and 3 deletions.
  1. +3 −3 lib/m.rb
View
@@ -187,10 +187,10 @@ def execute
test_arguments = ["-n", "/(#{test_names})/"]
# directly run the tests from here and exit with the status of the tests passing or failing
- if defined?(Test)
- exit Test::Unit::AutoRunner.run(false, nil, test_arguments)
- elsif defined?(MiniTest)
+ if defined?(MiniTest)
exit MiniTest::Unit.runner.run test_arguments
+ elsif defined?(Test)
+ exit Test::Unit::AutoRunner.run(false, nil, test_arguments)
else
not_supported
end

0 comments on commit 004bca4

Please sign in to comment.