Bug #10746

ruby bundles files that requires minitest/testunit (removed from library on 2.2.0)

Added by luizluca (Luiz Angelo Daros de Luca) over 5 years ago. Updated over 4 years ago.

Target version:
ruby -v:
ruby 2.2.0p0 (2014-12-25 revision 49005) [i486-linux-gnu]



On ruby 2.2.0, there is some files shipped with ruby that generates errors when required. This is due to the removal of minitest/testunit from ruby library. I.e.:

# ruby -rrdoc/test_case 
/usr/lib/ruby/2.2/rubygems/core_ext/kernel_require.rb:54:in `require': cannot load such file -- minitest/autorun (LoadError)
        from /usr/lib/ruby/2.2/rubygems/core_ext/kernel_require.rb:54:in `require'
        from /usr/lib/ruby/2.2/rdoc/test_case.rb:9:in `<top (required)>'
        from /usr/lib/ruby/2.2/rubygems/core_ext/kernel_require.rb:54:in `require'
        from /usr/lib/ruby/2.2/rubygems/core_ext/kernel_require.rb:54:in `require'

They are:



They might be useful for a "make test" but they are probably useless for the target system and might be OK to remove them from installation. Maybe it is interesting to remove them from {rdoc,rake}.gemspec too.

Updated by zenspider (Ryan Davis) over 5 years ago

  • Assignee set to drbrain (Eric Hodel)

Updated by luizluca (Luiz Angelo Daros de Luca) over 5 years ago

Even minitest/testunit removed from /usr/lib/ruby/2.2/, it is still present in /usr/lib/ruby/2.2/rubygems, which ruby looks for automatically.

My problem was that I got all gems uninstalled. Sorry.

If tests should be installed, please, close this as invalid.


Updated by nobu (Nobuyoshi Nakada) over 5 years ago

  • Description updated (diff)

Updated by hsbt (Hiroshi SHIBATA) over 4 years ago

  • Status changed from Open to Rejected

Also available in: Atom PDF