We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 08554ad commit 166b6a0Copy full SHA for 166b6a0
1 file changed
lib/rubytest/autorun.rb
@@ -1,19 +1,7 @@
1
-#$TEST_SUITE = [] unless defined?($TEST_SUITE)
2
-
3
-if RUBY_VERSION < '1.9'
4
- require 'rubytest'
5
-else
6
- require_relative '../rubytest'
7
-end
+require 'rubytest'
8
9
at_exit {
10
- suite = $TEST_SUITE
11
- options = {
12
- :format => ENV['rubytest-format'] # TODO: better name?
13
- }
14
15
- runner = Ruth::Test::Runner.new(suite, options)
16
- success = runner.run
+ success = Test.run
17
exit -1 unless success
18
}
19
0 commit comments