Module: HasHelpers::FactoryScenario::FactoryBotOverride::SingletonPatch
- Defined in:
- lib/has_helpers/factory_scenario/factory_bot_override.rb
Instance Method Summary collapse
- #build(name, *traits, **attrs, &block) ⇒ Object
- #create(name, *traits, **attrs, &block) ⇒ Object
- #create_list(name, count, *traits, **attrs, &block) ⇒ Object
Instance Method Details
#build(name, *traits, **attrs, &block) ⇒ Object
27 28 29 30 31 |
# File 'lib/has_helpers/factory_scenario/factory_bot_override.rb', line 27 def build(name, *traits, **attrs, &block) traits, attrs = merge_override(name, traits, attrs) super(name, *traits, **attrs, &block) end |
#create(name, *traits, **attrs, &block) ⇒ Object
21 22 23 24 25 |
# File 'lib/has_helpers/factory_scenario/factory_bot_override.rb', line 21 def create(name, *traits, **attrs, &block) traits, attrs = merge_override(name, traits, attrs) super(name, *traits, **attrs, &block) end |
#create_list(name, count, *traits, **attrs, &block) ⇒ Object
33 34 35 36 |
# File 'lib/has_helpers/factory_scenario/factory_bot_override.rb', line 33 def create_list(name, count, *traits, **attrs, &block) traits, attrs = merge_override(name, traits, attrs) super(name, count, *traits, **attrs, &block) end |