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

前端 未结 2 574
不知归路
不知归路 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: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)

提交回复
热议问题