Sha256: db608e4ffd541e3ad1f7b5d716b08202b83b73b0aca89c89141e811e6ae51452

Contents?: true

Size: 483 Bytes

Versions: 16

Compression:

Stored size: 483 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

16 entries across 16 versions & 1 rubygems

Version Path
hackathon_manager-0.12.2 test/factories/users.rb
hackathon_manager-0.12.1 test/factories/users.rb
hackathon_manager-0.12.0 test/factories/users.rb
hackathon_manager-0.11.2 test/factories/users.rb
hackathon_manager-0.11.1 test/factories/users.rb
hackathon_manager-0.11.0 test/factories/users.rb
hackathon_manager-0.10.3 test/factories/users.rb
hackathon_manager-0.10.2 test/factories/users.rb
hackathon_manager-0.10.1 test/factories/users.rb
hackathon_manager-0.10.0 test/factories/users.rb
hackathon_manager-0.9.2 test/factories/users.rb
hackathon_manager-0.9.1 test/factories/users.rb
hackathon_manager-0.9.0 test/factories/users.rb
hackathon_manager-0.8.2 test/factories/users.rb
hackathon_manager-0.8.1 test/factories/users.rb
hackathon_manager-0.8.0 test/factories/users.rb