How do I add gem 'minitest' to my test helper?

前端 未结 2 575
不知归路
不知归路 2021-02-05 04:07

I am new to Ruby on Rails and testing. When I run rake test I get the following error:

/Users/jarvis/.rvm/gems/ruby-1.9.2-p180@rails3tutorial/gems/r         


        
相关标签:
2条回答
  • 2021-02-05 04:40

    uninstall your minitest first. gem uninstall minitest.

    if you are using turn make sure the version is less 0.8.3

    put those code to your bottom of your Gemfile

    group :test do
      gem 'turn', '< 0.8.3'
      gem 'minitest'
    end
    

    then run

    bundle install 
    
    0 讨论(0)
  • 2021-02-05 04:42

    Edit your Gemfile so that the gem is specified under the test group, like so:

    group :test do
      gem "minitest"
    end
    

    (Posting the solution that the OP edited into the question, but did not post as an answer)

    0 讨论(0)
提交回复
热议问题