Sha256: 4b02c57d7e563e21a2bb942793b0351084cf7ca4fc55d9275d235f31f021b488

Contents?: true

Size: 383 Bytes

Versions: 64

Compression:

Stored size: 383 Bytes

Contents

require 'faker'

FactoryGirl.define do
  factory :user do
    email           { Faker::Internet.email }
    password        "something"
    confirmed_at    Time.now
    user_profile
    
    factory :admin_user do
      email           'admin@example.com'
      password        'something_admin'

      after(:build) do |user|
        user.add_role :admin
      end
    end
  end
end

Version data entries

64 entries across 64 versions & 4 rubygems

Version Path
dm_newsletter-4.2.3.10 spec/factories/users.rb
dm_forum-4.2.3.10 spec/factories/users.rb
dm_cms-4.2.3.10 spec/factories/users.rb
dm_core-4.2.3.10 spec/factories/users.rb
dm_newsletter-4.2.3.9 spec/factories/users.rb
dm_forum-4.2.3.9 spec/factories/users.rb
dm_cms-4.2.3.9 spec/factories/users.rb
dm_core-4.2.3.9 spec/factories/users.rb
dm_newsletter-4.2.3.8 spec/factories/users.rb
dm_forum-4.2.3.8 spec/factories/users.rb
dm_cms-4.2.3.8 spec/factories/users.rb
dm_core-4.2.3.8 spec/factories/users.rb
dm_newsletter-4.2.3.7 spec/factories/users.rb
dm_forum-4.2.3.7 spec/factories/users.rb
dm_cms-4.2.3.7 spec/factories/users.rb
dm_core-4.2.3.7 spec/factories/users.rb
dm_newsletter-4.2.3.6 spec/factories/users.rb
dm_forum-4.2.3.6 spec/factories/users.rb
dm_cms-4.2.3.6 spec/factories/users.rb
dm_core-4.2.3.6 spec/factories/users.rb