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/lib/factory_bot
Daniel Colson 2e0b47639c
Remove deprecated factory lookup by class (#1212)
Closes #1196

We deprecated looking up factories by class in #877. We introduced
`allow_class_lookup` option so that people could disable the behavior
entirely after fixing the deprecation warning.

In preparation for factory_bot 5, I am removing the deprecation warning
and the `allow_class_lookup` option. It is no longer possible to look
up factories by class. This has also made the ClassKeyHash decorator
unnecessary. The behavior is technically a little different now
that we are using HashWithIndifferentAccess
instead of calling to_sym on the key, but it
should behave identically for any standard,
documented factory_bot usage.
2018-10-12 16:59:02 -04:00
..
attribute Remove static attributes 2018-09-14 19:27:13 +00:00
declaration Fix assorted RuboCop spacing volations (#1203) 2018-09-27 21:35:05 -04:00
decorator Remove deprecated factory lookup by class (#1212) 2018-10-12 16:59:02 -04:00
strategy [Rubocop] Style Cop Offenses (#1208) 2018-10-07 18:02:54 -04:00
syntax [Rubocop] Lint Cop Offenses (#1207) 2018-10-05 14:54:08 -04:00
aliases.rb [Rubocop] Style Cop Offenses (#1208) 2018-10-07 18:02:54 -04:00
attribute.rb Rubocop: Fix Style/StringLiterals Offenses (#1216) 2018-10-07 21:45:51 -04:00
attribute_assigner.rb [Rubocop] Style Cop Offenses (#1208) 2018-10-07 18:02:54 -04:00
attribute_list.rb Replace 'girl' with 'bot' everywhere (#1051) 2017-10-20 15:20:28 -04:00
callback.rb Fix assorted RuboCop spacing volations (#1203) 2018-09-27 21:35:05 -04:00
callbacks_observer.rb Replace 'girl' with 'bot' everywhere (#1051) 2017-10-20 15:20:28 -04:00
configuration.rb Remove deprecated factory lookup by class (#1212) 2018-10-12 16:59:02 -04:00
declaration.rb Rubocop: Fix Style/StringLiterals Offenses (#1216) 2018-10-07 21:45:51 -04:00
declaration_list.rb [Rubocop] Style Cop Offenses (#1208) 2018-10-07 18:02:54 -04:00
decorator.rb Replace 'girl' with 'bot' everywhere (#1051) 2017-10-20 15:20:28 -04:00
definition.rb Fix assorted RuboCop spacing volations (#1203) 2018-09-27 21:35:05 -04:00
definition_hierarchy.rb Replace 'girl' with 'bot' everywhere (#1051) 2017-10-20 15:20:28 -04:00
definition_proxy.rb [Rubocop] Style Cop Offenses (#1208) 2018-10-07 18:02:54 -04:00
errors.rb Remove warning about setter methods 2018-09-28 16:59:48 -04:00
evaluation.rb Rubocop: Fix Style/StringLiterals Offenses (#1216) 2018-10-07 21:45:51 -04:00
evaluator.rb Rubocop: Fix Style/StringLiterals Offenses (#1216) 2018-10-07 21:45:51 -04:00
evaluator_class_definer.rb Replace 'girl' with 'bot' everywhere (#1051) 2017-10-20 15:20:28 -04:00
factory.rb Rubocop: Fix Style/StringLiterals Offenses (#1216) 2018-10-07 21:45:51 -04:00
factory_runner.rb Rubocop: Fix Style/StringLiterals Offenses (#1216) 2018-10-07 21:45:51 -04:00
find_definitions.rb Rubocop: Fix Style/StringLiterals Offenses (#1216) 2018-10-07 21:45:51 -04:00
linter.rb Rubocop: Fix Layout/IndentHeredoc issues (#1215) 2018-10-07 22:46:58 -04:00
null_factory.rb Fix assorted RuboCop spacing volations (#1203) 2018-09-27 21:35:05 -04:00
null_object.rb [Rubocop] Lint Cop Offenses (#1207) 2018-10-05 14:54:08 -04:00
registry.rb Remove deprecated factory lookup by class (#1212) 2018-10-12 16:59:02 -04:00
reload.rb Replace 'girl' with 'bot' everywhere (#1051) 2017-10-20 15:20:28 -04:00
sequence.rb Fix assorted RuboCop spacing volations (#1203) 2018-09-27 21:35:05 -04:00
strategy_calculator.rb Replace 'girl' with 'bot' everywhere (#1051) 2017-10-20 15:20:28 -04:00
strategy_syntax_method_registrar.rb [Rubocop] Performance Cop Offenses (#1209) 2018-10-04 21:07:56 -04:00
syntax.rb Rubocop: Fix Style/StringLiterals Offenses (#1216) 2018-10-07 21:45:51 -04:00
syntax_runner.rb Replace 'girl' with 'bot' everywhere (#1051) 2017-10-20 15:20:28 -04:00
trait.rb Fix assorted RuboCop spacing volations (#1203) 2018-09-27 21:35:05 -04:00
version.rb Bump version to 4.11.1 [ci skip] 2018-09-07 15:58:10 -04:00