Module: TestProf::FactoryDefault::FactoryBotPatch::StrategyExt

Defined in:
lib/test_prof/factory_default/factory_bot_patch.rb

Instance Method Summary collapse

Instance Method Details

#association(runner) ⇒ Object



19
20
21
22
# File 'lib/test_prof/factory_default/factory_bot_patch.rb', line 19

def association(runner)
  FactoryDefault.get(runner.name, runner.traits, runner.overrides, **{}) ||
    FactoryDefault.profiler.instrument(runner.name, runner.traits, runner.overrides) { super }
end