Module: FactoryGirl::Syntax::Vintage
- Defined in:
- lib/factory_girl/syntax/vintage.rb
Instance Method Summary collapse
-
#Factory(name, attrs = {}) ⇒ Object
Shortcut for Factory.default_strategy.
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 |