thoughtbot--factory_bot/spec
Joshua Clayton 4e2b7e0b3f Allow factories with traits to be used in associations
This allows defining associations with factories using traits by slicing
up the hash passed to association. Passing an array to `:factory` will
use the first item in the array as the factory, with any subsequent
symbols as traits.

Here's an example:

    factory :post do
      association :author, factory: [:user, :admin], name: 'John Doe'
    end

Closes #395
2012-06-29 11:06:08 -04:00
..
acceptance Allow factories with traits to be used in associations 2012-06-29 11:06:08 -04:00
factory_girl Move Timecop.return to global after 2012-06-22 17:53:20 -04:00
support Move strategy calculation to Factory#run 2012-05-04 13:36:46 -04:00
factory_girl_spec.rb Clean up attribute and core factory specs 2011-08-19 17:21:14 -04:00
spec_helper.rb Move Timecop.return to global after 2012-06-22 17:53:20 -04:00