mirror of
https://github.com/thoughtbot/factory_bot.git
synced 2022-11-09 11:43:51 -05:00
a5b3a97c9d
By setting: FactoryGirl.duplicate_attribute_assignment_from_initialize_with = false This turns off duplicate assignment of attributes accessed from initialize_with. This means any attributes accessed from the factory and assigned in the initialize_with block won't be subsequently set after the object has been instantiated. This will be the default functionality in 4.0. Closes #345 |
||
---|---|---|
.. | ||
syntax | ||
activesupport_instrumentation_spec.rb | ||
aliases_spec.rb | ||
attribute_aliases_spec.rb | ||
attribute_existing_on_object_spec.rb | ||
attributes_for_spec.rb | ||
attributes_from_instance_spec.rb | ||
attributes_ordered_spec.rb | ||
build_list_spec.rb | ||
build_spec.rb | ||
build_stubbed_spec.rb | ||
callbacks_spec.rb | ||
create_list_spec.rb | ||
create_spec.rb | ||
define_child_before_parent_spec.rb | ||
definition_spec.rb | ||
definition_without_block_spec.rb | ||
global_initialize_with_spec.rb | ||
global_to_create_spec.rb | ||
initialize_with_spec.rb | ||
modify_factories_spec.rb | ||
modify_inherited_spec.rb | ||
nested_attributes_spec.rb | ||
overrides_spec.rb | ||
parent_spec.rb | ||
register_strategies_spec.rb | ||
sequence_spec.rb | ||
skip_create_spec.rb | ||
stub_spec.rb | ||
syntax_methods_within_dynamic_attributes_spec.rb | ||
traits_spec.rb | ||
transient_attributes_spec.rb |