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
Sweta 5ccc564923
Fix self referencing trait error (#1294)
If a new trait is defined with attributes,  check if attributes matches the name of
the trait. Raise an error if so, to avoid a recursive call to the
trait.

Co-authored-by: Daniel Colsen <daniel.j.colson@thoughtbot.com>
Co-authored-by: Paras Sanghavi <sanghaviparas@gmail.com>
2019-09-10 16:24:20 -07:00
..
activesupport_instrumentation_spec.rb Deprecate and move to Internal factories methods 2019-06-04 19:39:04 -04:00
aliases_spec.rb Autocorrect all static attributes to dynamic 2018-09-14 19:27:13 +00:00
associations_spec.rb Offer advice for association typo 2019-04-26 11:12:05 -04: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 Adjust use_parent_strategy safely in specs 2019-08-12 18:54:53 +01:00
build_stubbed_spec.rb Avoid time travel in tests 2019-08-01 11:21:06 +01: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 Deprecate and move to Internal factories methods 2019-06-04 19:39:04 -04:00
definition_spec.rb Autocorrect all static attributes to dynamic 2018-09-14 19:27:13 +00:00
definition_without_block_spec.rb Deprecate and move to Internal factories methods 2019-06-04 19:39:04 -04: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 Adjust use_parent_strategy safely in specs 2019-08-12 18:54:53 +01:00
reload_spec.rb Adjust use_parent_strategy safely in specs 2019-08-12 18:54:53 +01:00
sequence_context_spec.rb Rubocop: Fix Style/StringLiterals Offenses (#1216) 2018-10-07 21:45:51 -04:00
sequence_resetting_spec.rb Allow inline sequences in traits to have same name 2019-02-15 17:10:27 -05: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 Avoid stubbing id for records without primary key 2019-07-19 15:18:11 -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 Fix self referencing trait error (#1294) 2019-09-10 16:24:20 -07:00
transient_attributes_spec.rb Rubocop: Fix Style/StringLiterals Offenses (#1216) 2018-10-07 21:45:51 -04:00