Sha256: 3c89b035b0151868449dfe65c254cd19898e2074a0e255a0c09ca5f8ad67641b
Contents?: true
Size: 556 Bytes
Versions: 3
Compression:
Stored size: 556 Bytes
Contents
require 'machinist/active_record' RailsBlogEngine::Post.blueprint do title { "Post #{sn}" } body { "Body text" } permalink { "permalink-#{sn}" } author { User.make } end RailsBlogEngine::Post.blueprint(:published) do state { "published" } published_at { Time.now } end RailsBlogEngine::Comment.blueprint do author_byline { "User #{sn}" } body { "Comment body" } end # Devise User model for our dummy application. User.blueprint do email { "user#{sn}@example.com" } password { "password" } password_confirmation { "password" } end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
rails_blog_engine-0.0.4 | spec/support/blueprints.rb |
rails_blog_engine-0.0.3 | spec/support/blueprints.rb |
rails_blog_engine-0.0.2 | spec/support/blueprints.rb |