thoughtbot/factory_girl — pull request #407 by fabiokr (2012-07-09 17:21:43+00:00)
Title: Allows one to pass traits on associations declarations

Makes this possible:

factory :post_with_named_user, class: Post do
user factory: :user_with_name, traits: :active, age: 20
end