Sha256: 8de3a3b8be305d4b48cc7a46f141601ae2c2090426fcbcf2575ca1867479b11a

Contents?: true

Size: 399 Bytes

Versions: 24

Compression:

Stored size: 399 Bytes

Contents

require 'factory_girl'

FactoryGirl.define do
  factory :alchemy_dummy_user, class: 'DummyUser' do
    sequence(:email) { |n| "john.#{n}@doe.com" }
    password 's3cr3t'
    alchemy_roles ['member']

    trait :as_admin do
      alchemy_roles ['admin']
    end

    trait :as_author do
      alchemy_roles ['author']
    end

    trait :as_editor do
      alchemy_roles ['editor']
    end
  end
end

Version data entries

24 entries across 24 versions & 1 rubygems

Version Path
alchemy_cms-3.6.7 lib/alchemy/test_support/factories/dummy_user_factory.rb
alchemy_cms-3.6.6 lib/alchemy/test_support/factories/dummy_user_factory.rb
alchemy_cms-3.6.5 lib/alchemy/test_support/factories/dummy_user_factory.rb
alchemy_cms-3.6.4 lib/alchemy/test_support/factories/dummy_user_factory.rb
alchemy_cms-3.6.3 lib/alchemy/test_support/factories/dummy_user_factory.rb
alchemy_cms-3.6.2 lib/alchemy/test_support/factories/dummy_user_factory.rb
alchemy_cms-4.0.0.rc2 lib/alchemy/test_support/factories/dummy_user_factory.rb
alchemy_cms-4.0.0.rc1 lib/alchemy/test_support/factories/dummy_user_factory.rb
alchemy_cms-3.6.1 lib/alchemy/test_support/factories/dummy_user_factory.rb
alchemy_cms-4.0.0.beta lib/alchemy/test_support/factories/dummy_user_factory.rb
alchemy_cms-3.6.0 lib/alchemy/test_support/factories/dummy_user_factory.rb
alchemy_cms-3.5.0 lib/alchemy/test_support/factories/dummy_user_factory.rb
alchemy_cms-3.4.2 lib/alchemy/test_support/factories/dummy_user_factory.rb
alchemy_cms-3.5.0.rc2 lib/alchemy/test_support/factories/dummy_user_factory.rb
alchemy_cms-3.5.0.rc1 lib/alchemy/test_support/factories/dummy_user_factory.rb
alchemy_cms-3.4.1 lib/alchemy/test_support/factories/dummy_user_factory.rb
alchemy_cms-3.3.3 lib/alchemy/test_support/factories/dummy_user_factory.rb
alchemy_cms-3.3.2 lib/alchemy/test_support/factories/dummy_user_factory.rb
alchemy_cms-3.4.0 lib/alchemy/test_support/factories/dummy_user_factory.rb
alchemy_cms-3.4.0.rc1 lib/alchemy/test_support/factories/dummy_user_factory.rb