Module: FactoryBot::Syntax::Default

Includes:
Methods
Included in:
FactoryBot
Defined in:
lib/factory_bot/syntax/default.rb

Defined Under Namespace

Classes: DSL, ModifyDSL

Instance Method Summary collapse

Methods included from Methods

#attributes_for, #attributes_for_list, #attributes_for_pair, #build, #build_list, #build_pair, #build_stubbed, #build_stubbed_list, #build_stubbed_pair, #create, #create_list, #create_pair, #generate, #generate_list

Instance Method Details

#define(&block) ⇒ Object



6
7
8
# File 'lib/factory_bot/syntax/default.rb', line 6

def define(&block)
  DSL.run(block)
end

#modify(&block) ⇒ Object



10
11
12
# File 'lib/factory_bot/syntax/default.rb', line 10

def modify(&block)
  ModifyDSL.run(block)
end