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

前端 未结 14 2104
面向向阳花
面向向阳花 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 20:53

    When i got the same error with similar stacktrace, it helped me to fix a syntax error in factories.

提交回复
热议问题