Sha256: 93d57b6879cb20e6f77c5b43c12ce5961c7306712ff1aed5599088d6d0302ab8

Contents?: true

Size: 573 Bytes

Versions: 7

Compression:

Stored size: 573 Bytes

Contents

FactoryGirl.define do
  factory :post do
    sequence(:title) { |n| "Post #{n}" }
    body "Lorem, etc."
  end

  factory :person do
    name "Marty McFly"
    email "backin@time.com"
    location "Hill Valley, California"
    age 17
  end

  factory :pidgeon do
    name "Doc Brown"
    location "Everywhere"
  end

  factory :user do
    name "Jackie Brown"
    sequence(:email) { |n| "bricker#{n}@kpcc.org" }
    can_login true
    is_superuser false
    password "secret"
    password_confirmation "secret"
  end

  factory :permission do
    resource "Post"
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
outpost-cms-0.1.4 spec/factories.rb
outpost-cms-0.1.3 spec/factories.rb
outpost-cms-0.1.2 spec/factories.rb
outpost-cms-0.1.1 spec/factories.rb
outpost-cms-0.1.0 spec/factories.rb
outpost-cms-0.0.5 spec/factories.rb
outpost-cms-0.0.4 spec/factories.rb