Skip to content

Commit

Permalink
Shows message when running "ruby setup.rb test" with Ruby1.9.
Browse files Browse the repository at this point in the history
  • Loading branch information
ngoto committed Oct 21, 2010
1 parent 9b66463 commit c6c567f
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions setup.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit c6c567f

Please sign in to comment.