Skip to content

Instantly share code, notes, and snippets.

@anathematic
Forked from seivan/snippet.rb
Created March 18, 2010 23:02
Show Gist options
  • Save anathematic/337027 to your computer and use it in GitHub Desktop.
Save anathematic/337027 to your computer and use it in GitHub Desktop.
UserGuest.blueprint do
username
password "12345"
password_confirmation "12345"
role
email
comments
end
... and then in my blueprint.rb
require 'machinist/active_record'
require 'sham'
require 'forgery'
Sham.define do
email { Forgery(:internet).email_address }
username { Forgery(:internet).user_name }
description { Forgery(:lorem_ipsum).paragraphs(2) }
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment