Sha256: 3a8ab8dfa686bd57d4636002fb2cd54b660624af78459ba15a84b2195247d283
Contents?: true
Size: 397 Bytes
Versions: 12
Compression:
Stored size: 397 Bytes
Contents
require 'factory_bot' FactoryBot.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
12 entries across 12 versions & 1 rubygems