RuntimeError: can't modify frozen Array when running rspec in rails 5.1

前端 未结 14 2023
面向向阳花
面向向阳花 2021-01-03 20:10

I recently upgraded to Rails 5.1 from v4.3 and am now getting this error when running tests:

An error occurred while loading 

./spec/controllers/admin/capac         


        
14条回答
  •  孤街浪徒
    2021-01-03 21:02

    Try setting config.eager_load = true in your environment file. This will load all files in memory during boot & will point out existing syntax errors in first place if any.

提交回复
热议问题