Closed CloCkWeRX closed 10 years ago
@CloCkWeRX does this work without using FactoryGirl? FactoryGirl does virtually nothing relating to ActiveRecord and doesn't care what table name or primary key you're using. If your factory is set to the correct class, you should be all set.
factory :aus_address_detail, class: PropertyService::AusAddressDetail do
# ... attribute assignments
end
If you fire up rails console
and try to persist a record, does it work as expected or do you see the same error?
@CloCkWeRX any updates? Thanks!
pg (0.15.1) factory_girl (4.2.0) activesupport (>= 3.0.0)
We're seeing behaviour where we have a model with a primary key/table name set:
Unfortunately factory girl does not seem to be aware of what it made. We will
create
but later that same model is not destroyed as we'd expect.