I’m using Ruby 1.9.2 and Rails 3.1.1 on Windows 7. I tried running a rake test command, but I keep getting this error:
`<top (required)>': MiniTest v1.6.0 is out of date. (RuntimeError)
`gem install minitest` and add `gem 'minitest' to you test helper.
I already tried using gem install minitest, I also added gem "minitest" to my gem file and ran bundle install. Nothing worked. I tried running bundle exec rake test, that failed too. I’m still getting the same error. My gem file has this:
group :test do
# Pretty printed test output
gem 'turn', :require => false
gem "minitest"
end
Any ideas where I’ve gone wrong? Full pastie of error: http://www.pastie.org/3214398
Running gem query returns this for minitest: minitest (2.10.1, 1.6.0)
I have found that several people have had this issue before, but none of the posted solutions have worked for me.
I’ve seen two solutions to this: the first is
gem uninstall minitest --version 1.6.0, and that’ll make sure the only minitest you have is the most up-to-date one.The second would be
bundle exec rake test– that will run rake test using the gems specifically in your Gemfile.