Created
July 25, 2010 03:39
-
-
Save zenom/489279 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
Sham.define do | |
name { Faker::Name.first_name } | |
surname { Faker::Name.last_name } | |
username { Faker::Internet.user_name } | |
password { (1..10).map { ('a'..'z').to_a.rand }.join } | |
email { Faker::Internet.email } | |
title { Faker::Lorem.words(5).join(' ') } | |
tagline { Faker::Lorem.words(8).join(' ') } | |
body { Faker::Lorem.words(10).join(' ') } | |
tags { Faker::Lorem.words(1).join } | |
url { Faker::Internet.domain_name } | |
feed_url { Faker::Internet.domain_name } | |
#has_image { Faker.shuffle([true, false])} | |
end | |
Account.blueprint do | |
name { Sham.name } | |
surname { Sham.surname } | |
username { Sham.username } | |
email { Sham.email } | |
password { 'testy' } | |
password_confirmation { 'testy' } | |
role { 'admin' } | |
end | |
Post.blueprint do | |
title { Sham.title } | |
summary { Sham.body } | |
last_modified { Time.now.utc } | |
url { "http://#{Sham.url}" } | |
tags { Sham.tags } | |
has_video { false } | |
tweeted { false } | |
feed | |
end | |
Feed.blueprint do | |
title { Sham.title } | |
url { "http://#{Sham.url}" } | |
feed_url { "http://#{Sham.feed_url}/blah.rss" } | |
last_modified { Time.now.utc - 60 } | |
etag { '' } | |
feed_format { 'rss' } | |
deleted { false } | |
auto_tweet { false } | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment