Search code examples
ruby-on-railsrspecrake-taskruby-on-rails-2

can't activate test-unit (= 1.2.3), already activated test-unit-2.3.0


Recently I added rspec test in my rails 2.3.5 but I wasn't able to run simply rake -T command. Then I found Rails 3 - If I'm using RSpec, can I just delete the 'test' folder? and I added gem test-unit in my Gemfile. This is showing me below message.

rake aborted!
can't activate test-unit (= 1.2.3), already activated test-unit-2.3.0. Make sure all dependencies are added to Gemfile.

Solution

  • You are trying to load old version of test-unit where new version is already activated. To fix this bug do either one

    1.Removing your new version of test-unit

    2.Find test-unit 1.2.3 version in rake file and replace it with 2.3.0