thoughtbot/factory_girl — Issue #271: Setting the association doesn't set the id
Author: pupeno
Created: 2012-01-17 15:48:06+00:00
State: open

I have a factory that looks like this

```ruby
FactoryGirl.define do
factory :post do
trait :in_blog do
association :site, :factory => :blog
end
end
end
```

and then I create an object like this:

```ruby
create :post, :in_blog
```

That used to work in FactoryGirl 2.3, but in 2.4 I get a validation error saying that site_id is nil.