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

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

    In case this helps anyone in future, it was database connection issue (Postgresql in my case). Head over to config/database.yml file and supply username: and password: < default is toor>

    Add this in the development: group.

提交回复
热议问题