1
0
Fork 0
mirror of https://github.com/thoughtbot/factory_bot.git synced 2022-11-09 11:43:51 -05:00
thoughtbot--factory_bot/spec/acceptance
Daniel Colson 3e1a941347 Do not reset use_parent_strategy on reload
Before this PR, `use_parent_strategy` was set on the configuration
instance. Since `FactoryBot.reload` wipes out the configuration, it also
ends up resetting `use_parent_strategy` back to `nil`.

This can cause problems when using factory_bot_rails with Spring, since
it calls `FactoryBot.reload` each time Spring forks. If
`use_parent_strategy` is set in a file that Spring preloads, like in an
initializer, then the value will get wiped out.

With this PR, we set `use_parent_strategy` directly on FactoryBot,
rather than on the configuration instance, and so reloading no longer
has any effect.
2019-01-04 15:47:32 -05:00
..
activesupport_instrumentation_spec.rb [Rubocop] Lint Cop Offenses (#1207) 2018-10-05 14:54:08 -04:00
aliases_spec.rb Autocorrect all static attributes to dynamic 2018-09-14 19:27:13 +00:00
associations_spec.rb Raise KeyError instead of ArgumentError in Registry 2018-12-16 22:25:04 -05:00
attribute_aliases_spec.rb Rubocop: Fix Style/StringLiterals Offenses (#1216) 2018-10-07 21:45:51 -04:00
attribute_existing_on_object_spec.rb Arrest lines of an unsavory length 2018-12-12 11:05:13 -05:00
attributes_for_spec.rb Rubocop: Fix Style/StringLiterals Offenses (#1216) 2018-10-07 21:45:51 -04:00
attributes_from_instance_spec.rb Rubocop: Fix Style/StringLiterals Offenses (#1216) 2018-10-07 21:45:51 -04:00
attributes_ordered_spec.rb Rubocop: Fix Style/StringLiterals Offenses (#1216) 2018-10-07 21:45:51 -04:00
build_list_spec.rb Rubocop: Fix Style/StringLiterals Offenses (#1216) 2018-10-07 21:45:51 -04:00
build_spec.rb Do not reset use_parent_strategy on reload 2019-01-04 15:47:32 -05:00
build_stubbed_spec.rb Simplify build_stubbed specs 2018-11-12 17:35:05 -05:00
callbacks_spec.rb Rubocop: Fix Style/StringLiterals Offenses (#1216) 2018-10-07 21:45:51 -04:00
create_list_spec.rb Rubocop: Fix Style/StringLiterals Offenses (#1216) 2018-10-07 21:45:51 -04:00
create_pair_spec.rb Rubocop: Fix Style/StringLiterals Offenses (#1216) 2018-10-07 21:45:51 -04:00
create_spec.rb Rubocop: Fix Style/StringLiterals Offenses (#1216) 2018-10-07 21:45:51 -04:00
define_child_before_parent_spec.rb Autocorrect all static attributes to dynamic 2018-09-14 19:27:13 +00:00
defining_methods_inside_a_factory_spec.rb Arrest lines of an unsavory length 2018-12-12 11:05:13 -05:00
definition_camel_string_spec.rb Rubocop: Fix Style/StringLiterals Offenses (#1216) 2018-10-07 21:45:51 -04:00
definition_spec.rb Autocorrect all static attributes to dynamic 2018-09-14 19:27:13 +00:00
definition_without_block_spec.rb Remove unnecessary spec_helper requires 2018-05-21 18:03:28 +01:00
global_initialize_with_spec.rb Rubocop: Fix Style/StringLiterals Offenses (#1216) 2018-10-07 21:45:51 -04:00
global_to_create_spec.rb Rubocop: Fix Style/StringLiterals Offenses (#1216) 2018-10-07 21:45:51 -04:00
initialize_with_spec.rb Avoid recursive call to AttributeHash#attributes 2018-10-26 10:51:05 -04:00
keyed_by_class_spec.rb Raise KeyError instead of ArgumentError in Registry 2018-12-16 22:25:04 -05:00
lint_spec.rb Add option for verbose linting 2018-11-27 12:04:38 -05:00
modify_factories_spec.rb Raise KeyError instead of ArgumentError in Registry 2018-12-16 22:25:04 -05:00
modify_inherited_spec.rb Rubocop: Fix Style/StringLiterals Offenses (#1216) 2018-10-07 21:45:51 -04:00
nested_attributes_spec.rb Remove remaining RuboCop TODOs 2018-10-21 12:15:32 -04:00
overrides_spec.rb Rubocop: Fix Style/StringLiterals Offenses (#1216) 2018-10-07 21:45:51 -04:00
parent_spec.rb Remove references to static attributes 2018-09-28 17:35:10 -04:00
private_attributes_spec.rb Rubocop: Fix Style/StringLiterals Offenses (#1216) 2018-10-07 21:45:51 -04:00
register_strategies_spec.rb Do not reset use_parent_strategy on reload 2019-01-04 15:47:32 -05:00
reload_spec.rb Do not reset use_parent_strategy on reload 2019-01-04 15:47:32 -05:00
sequence_context_spec.rb Rubocop: Fix Style/StringLiterals Offenses (#1216) 2018-10-07 21:45:51 -04:00
sequence_resetting_spec.rb Avoid defining classes without test helpers 2018-09-08 23:52:20 +00:00
sequence_spec.rb Remove unnecessary spec_helper requires 2018-05-21 18:03:28 +01:00
skip_create_spec.rb Autocorrect all static attributes to dynamic 2018-09-14 19:27:13 +00:00
stub_spec.rb Rubocop: Fix Style/StringLiterals Offenses (#1216) 2018-10-07 21:45:51 -04:00
syntax_methods_within_dynamic_attributes_spec.rb Rubocop: Fix Style/StringLiterals Offenses (#1216) 2018-10-07 21:45:51 -04:00
traits_spec.rb Raise KeyError instead of ArgumentError in Registry 2018-12-16 22:25:04 -05:00
transient_attributes_spec.rb Rubocop: Fix Style/StringLiterals Offenses (#1216) 2018-10-07 21:45:51 -04:00