Sha256: 9fcdd52a3cc024654aab5278175909b1a87bee76de88f8c9389d63a7df4746cf

Contents?: true

Size: 692 Bytes

Versions: 98

Compression:

Stored size: 692 Bytes

Contents

FactoryBot.define do
  factory :user do
    name { 'User' }
    email { 'email@test.com' }
    login { 'user' }
    password { 'password' }
    password_confirmation { password }

    factory :admin do
      name { 'Admin' }
      login { 'admin' }
      email { 'admin@example.com' }
      admin { true }
    end

    factory :existing do
      name { 'Existing' }
      login { 'existing' }
      email { 'existing@example.com' }
    end

    factory :designer do
      name { 'Designer' }
      login { 'designer' }
      email { '' }
      designer { true }
    end

    factory :non_admin do
      name { 'Non Admin' }
      login { 'non_admin' }
      admin { false }
    end
  end
end

Version data entries

98 entries across 98 versions & 1 rubygems

Version Path
trusty-cms-3.9.3 spec/factories/user.rb
trusty-cms-3.9.2 spec/factories/user.rb
trusty-cms-4.0.0 spec/factories/user.rb
trusty-cms-3.9.1 spec/factories/user.rb
trusty-cms-3.9.0 spec/factories/user.rb
trusty-cms-3.8.4 spec/factories/user.rb
trusty-cms-3.8.3 spec/factories/user.rb
trusty-cms-3.8.2 spec/factories/user.rb
trusty-cms-3.8.1 spec/factories/user.rb
trusty-cms-3.8.0 spec/factories/user.rb
trusty-cms-3.7.1 spec/factories/user.rb
trusty-cms-3.7.0 spec/factories/user.rb
trusty-cms-3.6.2 spec/factories/user.rb
trusty-cms-3.6.1 spec/factories/user.rb
trusty-cms-3.6.0 spec/factories/user.rb
trusty-cms-3.5.5 spec/factories/user.rb
trusty-cms-3.5.4 spec/factories/user.rb
trusty-cms-3.5.3 spec/factories/user.rb