Methods

FactoryGirl::Syntax::Vintage

Public Instance Methods

Factory(name, attrs = {}) click to toggle source

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')
# File lib/factory_girl/syntax/vintage.rb, line 142
def Factory(name, attrs = {})
  Factory.default_strategy(name, attrs)
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.