Module: FactoryGirl::Syntax::Vintage

Defined in:
lib/factory_girl/syntax/vintage.rb

Defined Under Namespace

Modules: Factory

Instance Method Summary collapse

Instance Method Details

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

Shortcut for Factory.default_strategy.

DEPRECATION WARNING:

In a future release, default_strategy will be removed and this will simply call create instead.

Example:

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


142
143
144
# File 'lib/factory_girl/syntax/vintage.rb', line 142

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