Module: TestProf::FactoryDefault::DefaultSyntax
- Defined in:
- lib/test_prof/factory_default.rb
Overview
:nodoc:
Instance Method Summary collapse
Instance Method Details
#create_default(name, *args, &block) ⇒ Object
10 11 12 13 14 15 |
# File 'lib/test_prof/factory_default.rb', line 10 def create_default(name, *args, &block) set_factory_default( name, TestProf::FactoryBot.create(name, *args, &block) ) end |
#set_factory_default(name, obj) ⇒ Object
17 18 19 |
# File 'lib/test_prof/factory_default.rb', line 17 def set_factory_default(name, obj) FactoryDefault.register(name, obj) end |