Sha256: e49c4072b1ce85e316d7d8072cf5169e7dae2fa2f04617b7448e72bba78acec8

Contents?: true

Size: 463 Bytes

Versions: 17

Compression:

Stored size: 463 Bytes

Contents

FactoryBot.define do
  factory :user do
    sequence :email do |n|
      "foo#{n}@example.com"
    end
    password "password"

    factory :admin do
      sequence :email do |n|
        "admin#{n}@example.com"
      end
      admin true
      admin_limited_access false
    end

    factory :limited_access_admin do
      sequence :email do |n|
        "limited_admin#{n}@example.com"
      end
      admin true
      admin_limited_access true
    end
  end
end

Version data entries

17 entries across 17 versions & 1 rubygems

Version Path
hackathon_manager-0.7.1 test/factories/users.rb
hackathon_manager-0.7.0 test/factories/users.rb
hackathon_manager-0.6.6 test/factories/users.rb
hackathon_manager-0.6.5 test/factories/users.rb
hackathon_manager-0.6.4 test/factories/users.rb
hackathon_manager-0.6.3 test/factories/users.rb
hackathon_manager-0.6.2 test/factories/users.rb
hackathon_manager-0.6.1 test/factories/users.rb
hackathon_manager-0.6.0 test/factories/users.rb
hackathon_manager-0.5.11 test/factories/users.rb
hackathon_manager-0.5.10 test/factories/users.rb
hackathon_manager-0.5.9 test/factories/users.rb
hackathon_manager-0.5.8 test/factories/users.rb
hackathon_manager-0.5.7 test/factories/users.rb
hackathon_manager-0.5.6 test/factories/users.rb
hackathon_manager-0.5.5 test/factories/users.rb
hackathon_manager-0.5.4 test/factories/users.rb