I'm really new to ruby. I'm starting to play following this guide for setting up ruby, rvm, update all my mac to current version, without any problem. So I installed test-unit gem and try some TDD script. Running the test nothing happen. So I run ruby with "-d" option and this happen.
Exception 'LoadError' at /Users/BlackSheep/.rvm/rubies/ruby-2.2.0/lib/ruby/site_ruby/2.2.0/rubygems.rb:1222 - cannot load such file -- rubygems/defaults/operating_system
Exception 'LoadError' at /Users/BlackSheep/.rvm/rubies/ruby-2.2.0/lib/ruby/site_ruby/2.2.0/rubygems.rb:1231 - cannot load such file -- rubygems/defaults/ruby
Exception `LoadError' at /Users/BlackSheep/.rvm/rubies/ruby-2.2.0/lib/ruby/site_ruby/2.2.0/rubygems/core_ext/kernel_require.rb:54 - cannot load such file -- test/unit
Exception 'NoMethodError' at /Users/BlackSheep/.rvm/rubies/ruby-2.2.0/lib/ruby/site_ruby/2.2.0/rubygems/specification.rb:1984 - undefined method `to_ary' for #
Exception 'NoMethodError' at /Users/BlackSheep/.rvm/rubies/ruby-2.2.0/lib/ruby/site_ruby/2.2.0/rubygems/specification.rb:1984 - undefined method 'to_ary' for #
what could be the problem?
Versions:
- Ruby: 2.2.0p0 (2014-12-25 revision 49005) [x86_64-darwin14]
- Rvm: 1.26.10
- Gem: 2.4.6
Edit: I've downgrade to version 2.0.0 and it works fine. So test-unit gem is not made for current ruby version?