Top Level Namespace

Defined Under Namespace

Modules: FactoryGirlStepHelpers Classes: Factory

Instance Method Summary collapse

Instance Method Details

#Factory(name, attrs = {}) ⇒ Object

Shortcut for Factory.default_strategy.

Example:

Factory(:user, :name => 'Joe')


20
21
22
# File 'lib/factory_girl.rb', line 20

def Factory (name, attrs = {})
  Factory.default_strategy(name, attrs)
end