Module: TestProf::FactoryDoctor::FactoryBotPatch
- Defined in:
- lib/test_prof/factory_doctor/factory_bot_patch.rb
Overview
Wrap #run method with FactoryDoctor tracking
Instance Method Summary collapse
Instance Method Details
#run(strategy = @strategy) ⇒ Object
11 12 13 |
# 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 |