-
-
Save anathematic/337027 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
UserGuest.blueprint do | |
username | |
password "12345" | |
password_confirmation "12345" | |
role | |
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