Sha256: 7eb1022a0c3408a236a156b1c900414a89db1fc1d7423f125a73b7e9b6122287
Contents?: true
Size: 681 Bytes
Versions: 2
Compression:
Stored size: 681 Bytes
Contents
require 'machinist/active_record' # takes care of # Validation failed: Email has already been taken (ActiveRecord::RecordInvalid) Machinist.configure do |config| config.cache_objects = false end Admin.blueprint do email { 'admin@example.com' } password { 'password' } password_confirmation { 'password' } end Settings.blueprint do site_name { 'JABE' } site_url { 'http://example.com' } end Entry.blueprint do title { 'My awesome blog entry' } body { 'This is the body of my awesome blog entry' } published_at { Time.now } draft { false } end Entry.blueprint(:published) do draft { false } end Comment.blueprint do # Attributes here end Settings.make!
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
jabe-0.5.8 | test/dummy/features/support/blueprints.rb |
jabe-0.5.7 | test/dummy/features/support/blueprints.rb |