Sha256: 63cbd0df04efbff2d058365c765454589f73622eedcd39b1297f1f25406cc3ca

Contents?: true

Size: 628 Bytes

Versions: 13

Compression:

Stored size: 628 Bytes

Contents

# frozen_string_literal: true

FactoryBot.define do
  factory :alchemy_user, class: Alchemy::User do
    sequence(:login) { |n| "john_#{n}.doe" }
    sequence(:email) { |n| "john_#{n}@doe.com" }
    firstname { 'John' }
    lastname { 'Doe' }
    password { 's3cr3t' }
    password_confirmation { 's3cr3t' }

    factory :alchemy_admin_user do
      alchemy_roles { 'admin' }
    end

    factory :alchemy_member_user do
      alchemy_roles { 'member' }
    end

    factory :alchemy_author_user do
      alchemy_roles { 'author' }
    end

    factory :alchemy_editor_user do
      alchemy_roles { 'editor' }
    end
  end
end

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
alchemy-devise-6.2.0 lib/alchemy/devise/test_support/factories.rb
alchemy-devise-6.1.0 lib/alchemy/devise/test_support/factories.rb
alchemy-devise-6.0.0 lib/alchemy/devise/test_support/factories.rb
alchemy-devise-5.1.0 lib/alchemy/devise/test_support/factories.rb
alchemy-devise-5.0.1 lib/alchemy/devise/test_support/factories.rb
alchemy-devise-5.0.0 lib/alchemy/devise/test_support/factories.rb
alchemy-devise-4.6.0 lib/alchemy/devise/test_support/factories.rb
alchemy-devise-4.5.0 lib/alchemy/devise/test_support/factories.rb
alchemy-devise-4.4.0 lib/alchemy/devise/test_support/factories.rb
alchemy-devise-4.3.1 lib/alchemy/devise/test_support/factories.rb
alchemy-devise-4.3.0 lib/alchemy/devise/test_support/factories.rb
alchemy-devise-4.2.1 lib/alchemy/devise/test_support/factories.rb
alchemy-devise-4.2.0 lib/alchemy/devise/test_support/factories.rb