Getting uninitialized constant error when trying to run tests

后端 未结 12 2234
礼貌的吻别
礼貌的吻别 2020-12-10 13:29

I just updated all my gems and I\'m finding that I\'m getting errors when trying to run Test::Unit tests. I\'m getting the error copied below. That comes from creating new,

12条回答
  •  星月不相逢
    2020-12-10 13:54

    If you add the following line to your environment.rb, or your config/environments/test.rb this should fix the issue

    config.gem "test-unit", :lib => "test/unit", :version => ">=2.0.9", :env => "test"
    

    I Believe you will need to add it before the mocha line if you use mocha.

提交回复
热议问题