Sha256: 3abc1eb6ec45007ada73d499a1d3d3fbf02ac78580298e5031dc27a417f80361

Contents?: true

Size: 494 Bytes

Versions: 16

Compression:

Stored size: 494 Bytes

Contents

# Read about factories at https://github.com/thoughtbot/factory_girl

FactoryGirl.define do
  factory :user, 'class'.to_sym =>  'Faalis::User' do
    first_name Faker::Name.first_name
    last_name  Faker::Name.first_name
    sequence :email do |n|
      "person#{n}@example.com"
    end

    factory :admin do
      groups { [group(:admin)] }
    end

    factory :manager do
      groups { [group(:manager)] }
    end

    factory :guest do
      groups { [group(:guest)] }
    end
  end
end

Version data entries

16 entries across 16 versions & 1 rubygems

Version Path
faalis-2.0.8 spec/factories/faalis/users.rb
faalis-2.0.7 spec/factories/faalis/users.rb
faalis-2.0.5 spec/factories/faalis/users.rb
faalis-2.0.4 spec/factories/faalis/users.rb
faalis-2.0.3 spec/factories/faalis/users.rb
faalis-2.0.1 spec/factories/faalis/users.rb
faalis-2.0.0 spec/factories/faalis/users.rb
faalis-2.0.0.rc6 spec/factories/faalis/users.rb
faalis-2.0.0.rc5 spec/factories/faalis/users.rb
faalis-2.0.0.rc4 spec/factories/faalis/users.rb
faalis-2.0.0.rc3 spec/factories/faalis/users.rb
faalis-2.0.0.rc2 spec/factories/faalis/users.rb
faalis-1.0.0 spec/factories/faalis/users.rb
faalis-1.0.0.alpha4 spec/factories/faalis/users.rb
faalis-1.0.0.alpha3 spec/factories/faalis/users.rb
faalis-1.0.0.alpha2 spec/factories/faalis/users.rb