Hi,
I am having problems with the use of the “test-unit” gem under JRuby in
1.9 mode.
I wrote the following code to explain:
require ‘rubygems’
gem ‘test-unit’
puts Gem.find_files(“test/unit”)
Result under Ruby 1.9.2:
c:/Ruby192/lib/ruby/gems/1.9.1/gems/test-unit-2.1.2/lib/test/unit.rb
c:/Ruby192/lib/ruby/1.9.1/test/unit.rb
Result under JRuby 1.5.6 + --1.8:
C:/jruby-1.5.6/lib/ruby/gems/1.8/gems/test-unit-2.1.2/lib/test/unit.rb
C:/jruby-1.5.6/lib/ruby/1.8/test/unit.rb
Result under JRuby 1.5.6 + --1.9:
C:/jruby-1.5.6/lib/ruby/1.9/test/unit.rb
C:/jruby-1.5.6/lib/ruby/gems/1.8/gems/test-unit-2.1.2/lib/test/unit.rb
For the story, this has consequences when testing under Netbeans, which
isn’t compatible with the MiniTest implementation of test cases.
Still, I don’t get why the activation of the “test-unit” doesn’t modify
the loading path under JRuby+1.9, while all other versions disagree.
Any ideas?
Philippe