Skip to content

Instantly share code, notes, and snippets.

@gimite
Created July 20, 2009 12:34
Show Gist options
  • Save gimite/150295 to your computer and use it in GitHub Desktop.
Save gimite/150295 to your computer and use it in GitHub Desktop.
--- setup.rb.orig Mon Jul 20 21:29:03 2009
+++ setup.rb Mon Jul 20 21:28:21 2009
@@ -1457,14 +1457,9 @@
return
end
$stderr.puts 'Running tests...' if verbose?
- begin
- require 'test/unit'
- rescue LoadError
- setup_rb_error 'test/unit cannot loaded. You need Ruby 1.8 or later to invoke this task.'
+ for path in Dir["#{TESTDIR}/**/test_*.rb"]
+ load(path)
end
- runner = Test::Unit::AutoRunner.new(true)
- runner.to_run << TESTDIR
- runner.run
end
#
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment