Skip to content

Commit 166b6a0

Browse files
committed
Fix autorunner.rb script. [bug]
1 parent 08554ad commit 166b6a0

1 file changed

Lines changed: 2 additions & 14 deletions

File tree

lib/rubytest/autorun.rb

Lines changed: 2 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -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
1+
require 'rubytest'
82

93
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
4+
success = Test.run
175
exit -1 unless success
186
}
197

0 commit comments

Comments
 (0)