Module: FactoryGirl::Syntax::Make Private
- Defined in:
This module is part of a private API. You should avoid using this module if possible, as it may be removed or be changed in the future.
Extends ActiveRecord::Base to provide a make class method, which is a shortcut for FactoryGirl.create.
require 'factory_girl/syntax/make' FactoryGirl.define do factory :user do name 'Billy Bob' email 'email@example.com' end end User.make(name: 'Johnny')
This syntax was derived from Pete Yandell's machinist.
Defined Under Namespace