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