FactoryGirl::Syntax::Blueprint

Extends ActiveRecord::Base to provide a make class method, which is an alternate syntax for defining factories.

Usage:

require 'factory_girl/syntax/blueprint'

User.blueprint do
  name  { 'Billy Bob'             }
  email { 'billy@bob.example.com' }
end

FactoryGirl.create(:user, :name => 'Johnny')

This syntax was derived from Pete Yandell's machinist.

[Validate]

Generated with the Darkfish Rdoc Generator 2.