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
Geoff Hubbard df5471078c Remove redundant const_missing class method.
This code was added as a workaround to fix namespace issues in one of
the acceptance specs when running with Ruby 1.9.2. [1]

Since then Ruby's constant resolver has been updated and this
non-standard behaviour of `Decorator` is not documented or tested by the
FactoryBot test suite.

So this workaround is no longer needed and the code can be removed.

Removing it improves the test coverage of the project;

Before:
1140 / 1143 LOC (99.74%)

After:
1139 / 1141 LOC (99.82%)

Reference:
[1] 775dc8bd88
2020-06-01 16:39:36 -04:00
..
attribute Run automatic cop fixes 2020-01-17 14:43:34 -05:00
declaration Fix self referencing trait error (#1294) 2019-09-10 16:24:20 -07:00
decorator Adjust for split from Style/MethodMissing into two cops 2020-01-17 14:43:34 -05:00
strategy Allow defining the starting id for build_stubbed 2020-04-26 15:37:06 -04:00
syntax Deprecate remaining undocumented internal methods 2020-04-23 19:35:39 -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 adjust style 2019-04-11 17:34:36 -04:00
attribute_list.rb Arrest lines of an unsavory length 2018-12-12 11:05:13 -05:00
callback.rb Remove code for registering callbacks 2020-05-29 14:52:23 -04:00
callbacks_observer.rb Replace 'girl' with 'bot' everywhere (#1051) 2017-10-20 15:20:28 -04:00
configuration.rb Run automatic cop fixes 2020-01-17 14:43:34 -05: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 Remove redundant const_missing class method. 2020-06-01 16:39:36 -04:00
definition.rb Remove code for registering callbacks 2020-05-29 14:52:23 -04:00
definition_hierarchy.rb Deprecate remaining undocumented internal methods 2020-04-23 19:35:39 -04:00
definition_proxy.rb Add functionality for enum traits (#1380) 2020-05-01 17:50:51 -04:00
enum.rb Add functionality for enum traits (#1380) 2020-05-01 17:50:51 -04:00
errors.rb Fix self referencing trait error (#1294) 2019-09-10 16:24:20 -07:00
evaluation.rb Rubocop: Fix Style/StringLiterals Offenses (#1216) 2018-10-07 21:45:51 -04:00
evaluator.rb Prepare for factory_bot 6 2020-05-01 17:43:10 -04:00
evaluator_class_definer.rb Replace 'girl' with 'bot' everywhere (#1051) 2017-10-20 15:20:28 -04:00
factory.rb Add functionality for enum traits (#1380) 2020-05-01 17:50:51 -04:00
factory_runner.rb Deprecate and move to Internal factories methods 2019-06-04 19:39:04 -04:00
find_definitions.rb Rubocop: Fix Style/StringLiterals Offenses (#1216) 2018-10-07 21:45:51 -04:00
internal.rb Remove code for registering callbacks 2020-05-29 14:52:23 -04:00
linter.rb Prepare for factory_bot 6 2020-05-01 17:43:10 -04:00
null_factory.rb Run automatic cop fixes 2020-01-17 14:43:34 -05:00
null_object.rb [Rubocop] Lint Cop Offenses (#1207) 2018-10-05 14:54:08 -04:00
registry.rb Run automatic cop fixes 2020-01-17 14:43:34 -05:00
reload.rb Remove code for registering callbacks 2020-05-29 14:52:23 -04:00
sequence.rb Fix assorted RuboCop spacing volations (#1203) 2018-09-27 21:35:05 -04:00
strategy_calculator.rb Deprecate/Move strategies and callback methods 2019-06-04 20:09:14 -04:00
strategy_syntax_method_registrar.rb Pass index to block for *_list methods 2020-04-24 11:36:17 -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 self referencing trait error (#1294) 2019-09-10 16:24:20 -07:00
version.rb Bump version to 5.2.0 2020-04-24 11:57:03 -04:00