Sha256: 4a3f6b332b7c311a32d4ecc889597fccba390caf829624cf966561ba6c1634bf
Contents?: true
Size: 640 Bytes
Versions: 21
Compression:
Stored size: 640 Bytes
Contents
module Pageflow FactoryGirl.define do sequence :email do |n| "person#{n}@example.com" end factory :user do email first_name 'John' last_name 'Doe' password '@qwert12345' password_confirmation { password } account trait :editor do end trait :account_manager do role 'account_manager' end trait :admin do role 'admin' end trait :suspended do suspended_at { 1.hour.ago } end end factory :valid_user, :class => User do email first_name "Edison" last_name "Editor" end end end
Version data entries
21 entries across 21 versions & 1 rubygems