Skip to content
Browse files

Shows message when running "ruby setup.rb test" with Ruby1.9.

  • Loading branch information...
1 parent 9b66463 commit c6c567fe9602ae8d7d343a5773f51d8aa22c8876 @ngoto ngoto committed Oct 21, 2010
Showing with 5 additions and 0 deletions.
  1. +5 −0 setup.rb
View
5 setup.rb
@@ -1472,6 +1472,11 @@ def exec_test
rescue LoadError
setup_rb_error 'test/unit cannot loaded. You need Ruby 1.8 or later to invoke this task.'
end
+########## begin customization for BioRuby
+ unless defined?(Test::Unit::AutoRunner) then
+ setup_rb_error 'Sorry it does not work in Ruby 1.9. Run "ruby test/runner.rb" instead.'
+ end
+########## end customization for BioRuby
runner = Test::Unit::AutoRunner.new(true)
runner.to_run << TESTDIR
runner.run

0 comments on commit c6c567f

Please sign in to comment.
Something went wrong with that request. Please try again.