Is test-unit incompatible with ruby 2.2.0? -
i'm new ruby. i'm starting play following this guide setting ruby, rvm, update mac current version, without problem. installed test-unit gem , try tdd script. running test nothing happen. run ruby "-d" option , happen.
exception 'loaderror' @ /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' @ /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' @ /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' @ /users/blacksheep/.rvm/rubies/ruby-2.2.0/lib/ruby/site_ruby/2.2.0/rubygems/specification.rb:1984 - undefined method `to_ary' #
exception 'nomethoderror' @ /users/blacksheep/.rvm/rubies/ruby-2.2.0/lib/ruby/site_ruby/2.2.0/rubygems/specification.rb:1984 - undefined method 'to_ary' #
what 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 version 2.0.0 , works fine. test-unit gem not made current ruby version?
up 2.1, ruby shipped test/unit
, of 2.2, it's been removed.
it's still available gem: https://github.com/test-unit/test-unit/. readme: "test::unit 1.2.3 original test::unit, taken straight ruby distribution. being distributed gem allow tool builders use stand-alone package. (the test framework in ruby going radically change soon)."
if make sure test-unit gem install (either gem install test-unit
or add gem 'test-unit'
gemfile) should solve problem.
Comments
Post a Comment