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