Sha256: 2d5de374216a809f24835055c1d533eb9d5516d4c6fafdb9546b95fc8e06b589

Contents?: true

Size: 710 Bytes

Versions: 1

Compression:

Stored size: 710 Bytes

Contents

require 'machinist/active_record'
require 'sham'
require 'faker'

Sham.name { Faker::Name.name }
Sham.email { Faker::Internet.email }
Sham.login { Faker::Internet.user_name }
Sham.title { Faker::Lorem.sentence }
Sham.host{|n| "something-else-#{n}"}
Sham.body { Faker::Company.bs }


Site.blueprint do
  title "Article title"
  host
end
# 
Article.blueprint do
  title
  body
  # site { Site.current }
end

Page.blueprint do
  title
  body
  published_at {Time.now.utc}
  # site { Site.current }
end

User.blueprint do
  login
  email
  # password "test password"
  # password_confirmation "test password"
end
# 
# Tag.blueprint do
#   title { Sham.title }
#   body "Page body <br />......</br/> The end"
# end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
content_engine-0.1.0 spec/blueprint.rb