thoughtbot--factory_bot/spec/acceptance
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
..
syntax Move strategy calculation to Factory#run 2012-05-04 13:36:46 -04:00
activesupport_instrumentation_spec.rb Write a test that doesn't suck 2012-05-05 00:08:39 -04:00
aliases_spec.rb Deprecate the vintage syntax 2012-03-16 16:43:23 -04:00
attribute_aliases_spec.rb Use 1.9 hash syntax 2012-03-16 16:43:23 -04:00
attribute_existing_on_object_spec.rb Use 1.9 hash syntax 2012-03-16 16:43:23 -04:00
attributes_for_spec.rb Test has_many with attributes_for 2012-04-17 08:38:12 -04:00
attributes_from_instance_spec.rb Use 1.9 hash syntax 2012-03-16 16:43:23 -04:00
attributes_ordered_spec.rb Use 1.9 hash syntax 2012-03-16 16:43:23 -04:00
build_list_spec.rb Use 1.9 hash syntax 2012-03-16 16:43:23 -04:00
build_spec.rb Use 1.9 hash syntax 2012-03-16 16:43:23 -04:00
build_stubbed_spec.rb Move Timecop.return to global after 2012-06-22 17:53:20 -04:00
callbacks_spec.rb Introduce new callback syntax 2012-05-04 17:59:34 -04:00
create_list_spec.rb Introduce new callback syntax 2012-05-04 17:59:34 -04:00
create_spec.rb Use 1.9 hash syntax 2012-03-16 16:43:23 -04:00
define_child_before_parent_spec.rb Use 1.9 hash syntax 2012-03-16 16:43:23 -04:00
definition_spec.rb Use 1.9 hash syntax 2012-03-16 16:43:23 -04:00
definition_without_block_spec.rb Move DefineConstant code into macro 2011-08-19 17:21:54 -04:00
global_initialize_with_spec.rb Optionally disable duplicate assignment of attributes in initialize_with 2012-05-18 17:38:23 -04:00
global_to_create_spec.rb Allow to_create defined for all factories 2012-05-12 18:10:02 -04:00
initialize_with_spec.rb Make hash of public attributes available within the initialize_with block 2012-06-08 17:05:36 -04:00
keyed_by_class_spec.rb Support refering to factory based on class name 2012-06-08 23:54:22 -04:00
modify_factories_spec.rb Introduce new callback syntax 2012-05-04 17:59:34 -04:00
modify_inherited_spec.rb Deprecate the vintage syntax 2012-03-16 16:43:23 -04:00
nested_attributes_spec.rb Use 1.9 hash syntax 2012-03-16 16:43:23 -04:00
overrides_spec.rb Use 1.9 hash syntax 2012-03-16 16:43:23 -04:00
parent_spec.rb Introduce new callback syntax 2012-05-04 17:59:34 -04:00
register_strategies_spec.rb Support *_list for all (including custom) strategies 2012-05-04 14:56:22 -04:00
sequence_spec.rb Clean up 2012-04-06 15:33:41 -04:00
skip_create_spec.rb Allow a user to skip the default create execution 2012-04-23 22:40:05 -05:00
stub_spec.rb Use 1.9 hash syntax 2012-03-16 16:43:23 -04:00
syntax_methods_within_dynamic_attributes_spec.rb Implicitly call FactoryGirl's syntax methods from dynamic attributes 2012-04-20 16:00:23 -04:00
traits_spec.rb Allow factories with traits to be used in associations 2012-06-29 11:06:08 -04:00
transient_attributes_spec.rb Introduce new callback syntax 2012-05-04 17:59:34 -04:00