Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Check for minitest first #18

Merged
merged 1 commit into from almost 2 years ago

2 participants

Sam Soffes Nick Quaranto
Sam Soffes
soffes commented

Fix for #16

Nick Quaranto qrush merged commit 004bca4 into from
Nick Quaranto qrush closed this
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Showing 1 unique commit by 1 author.

Jun 09, 2012
Sam Soffes soffes Check for MiniTest first 18d567c
This page is out of date. Refresh to see the latest.

Showing 1 changed file with 6 additions and 6 deletions. Show diff stats Hide diff stats

  1. +6 6 lib/m.rb
12 lib/m.rb
@@ -160,10 +160,10 @@ def execute
160 160 test_arguments = ["-n", "/(#{test_names})/"]
161 161
162 162 # directly run the tests from here and exit with the status of the tests passing or failing
163   - if defined?(Test)
164   - exit Test::Unit::AutoRunner.run(false, nil, test_arguments)
165   - elsif defined?(MiniTest)
  163 + if defined?(MiniTest)
166 164 exit MiniTest::Unit.runner.run test_arguments
  165 + elsif defined?(Test)
  166 + exit Test::Unit::AutoRunner.run(false, nil, test_arguments)
167 167 else
168 168 not_supported
169 169 end
@@ -196,10 +196,10 @@ def suites
196 196 end
197 197
198 198 # Figure out what test framework we're using
199   - if defined?(Test)
200   - suites = Test::Unit::TestCase.test_suites
201   - elsif defined?(MiniTest)
  199 + if defined?(MiniTest)
202 200 suites = MiniTest::Unit::TestCase.test_suites
  201 + elsif defined?(Test)
  202 + suites = Test::Unit::TestCase.test_suites
203 203 else
204 204 not_supported
205 205 end

Tip: You can add notes to lines in a file. Hover to the left of a line to make a note

Something went wrong with that request. Please try again.