Sha256: 6a49032853271d2f1bed60755b642e0a3a4e5379d38357175f1b2d41b47353e7

Contents?: true

Size: 951 Bytes

Versions: 1

Compression:

Stored size: 951 Bytes

Contents

require 'machinist/active_record'
require 'sham'
require 'ffaker'

Sham.name                      { Faker::Name.name }
Sham.company_name              { Faker::Company.name }
Sham.first_name                { Faker::Name.first_name }
Sham.last_name                 { Faker::Name.last_name }
Sham.email                     { Faker::Internet.email }
Sham.date                      { Date.civil((1990...2010).to_a.choice, (1..12).to_a.choice, (1..28).to_a.choice) }
Sham.account(:unique => false) { Account.find_or_create_by_name("Elabs") }
Sham.plan(:unique => false)    { %w[bronze silver gold].choice }

Project.blueprint do
  account
  name    { Sham.name }
end

Account.blueprint do
  name       { Sham.company_name }
  email      { Sham.email }
  password   { 'test1234' }
  first_name { Sham.first_name }
  last_name  { Sham.last_name }
  plan       { Sham.plan }
end

User.blueprint do
  account
  email { Sham.email }
  password { "test1234" }
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
bento-0.0.1 spec/support/blueprints.rb