Getting uninitialized constant error when trying to run tests

后端 未结 12 2225
礼貌的吻别
礼貌的吻别 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:40

    As this link suggests http://floehopper.lighthouseapp.com/projects/22289-mocha/tickets/50 it may happen due to preliminary initialization of mocha lib. To prevent it from happeing it is advisable to add line

    config.gem 'test-unit', :lib => 'test/unit'
    

    to config/environment.rb

提交回复
热议问题