Strange ActiveRecord::AssociationTypeMismatch

后端 未结 5 546
Happy的楠姐
Happy的楠姐 2021-02-01 16:10

I am getting a very strange error when running a spec:

Failure/Error: entity = Factory.create(:entity, :name => \"Test Entity\", :creator => user)
 ActiveR         


        
5条回答
  •  爱一瞬间的悲伤
    2021-02-01 16:39

    Similar error might occur if you are using Spring or any other Rails application preloader, make sure you restart it.

    spring stop
    spring start
    # or usually bin/rails s or bin/rails c for console
    

提交回复
热议问题