module TestProf::FactoryDoctor::FactoryBotPatch

Wrap run method with FactoryDoctor tracking

Public Instance Methods

run(strategy = @strategy) click to toggle source
Calls superclass method
# File lib/test_prof/factory_doctor/factory_bot_patch.rb, line 11
def run(strategy = @strategy)
  FactoryDoctor.within_factory(strategy.create? ? :create : :other) { super }
end