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

前端 未结 14 2028
面向向阳花
面向向阳花 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:58

    For me it was a FactoryBot update from version 4 to 5. I didn't see the deprecation warning because I jumped versions:

    DEPRECATION WARNING: Static attributes will be removed in FactoryBot 5.0.
    

提交回复
热议问题