I am getting a very strange error when running a spec:
Failure/Error: entity = Factory.create(:entity, :name => \"Test Entity\", :creator => user)
ActiveR
The issue for me was in my factory definition where I was using additional factories to populate id fields. I accidentally referred to an attribute that didn't exist on the table (account, instead of account_id). See example below.
factory Omni::CustomerAccount do
sequence(:display_name) {|n| "test #{n}"}
customer_id :customer # this is correct
account :account # wrong - this should say account_id :account
end
Hope this helps someone.