Module: FactoryGirl::Syntax::Default

Includes:
Methods
Included in:
FactoryGirl
Defined in:
lib/factory_girl/syntax/default.rb

Defined Under Namespace

Classes: DSL, ModifyDSL

Instance Method Summary collapse

Methods included from Methods

#attributes_for, #attributes_for_list, #build, #build_list, #build_stubbed, #build_stubbed_list, #create, #create_list, #generate, #generate_list

Instance Method Details

#define(&block) ⇒ Object



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

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

#modify(&block) ⇒ Object



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

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