Module: TestProf::FactoryAllStub::FactoryBotPatch

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

Overview

Wrap #run method to override strategy

Instance Method Summary collapse

Instance Method Details

#run(_strategy = @strategy) ⇒ Object



7
8
9
10
# File 'lib/test_prof/factory_all_stub/factory_bot_patch.rb', line 7

def run(_strategy = @strategy)
  return super unless FactoryAllStub.enabled?
  super(:build_stubbed)
end