Sha256: 41de478cc4996c0b4b7cd1d80278e1a7f21d02354ed1c91a0cf2734e0b469a9d

Contents?: true

Size: 445 Bytes

Versions: 108

Compression:

Stored size: 445 Bytes

Contents

FactoryGirl.define do
  factory :user, class: CoalescingPanda::User do
    account
    sequence :email do |n|
      "test#{n}@test.com"
    end

    sequence :name do |n|
      "Factory User #{n}"
    end

    sequence :canvas_user_id do |n|
      n
    end

    roles []

    factory :teacher do
      roles [:teacher]
    end

    factory :student do
      roles [:student]
    end

    factory :admin do
      roles [:admin]
    end
  end
end

Version data entries

108 entries across 108 versions & 1 rubygems

Version Path
coalescing_panda-5.1.2 spec/factories/users.rb
coalescing_panda-5.1.0 spec/factories/users.rb
coalescing_panda-5.0.10 spec/factories/users.rb
coalescing_panda-5.0.9 spec/factories/users.rb
coalescing_panda-5.0.8 spec/factories/users.rb
coalescing_panda-5.0.7 spec/factories/users.rb
coalescing_panda-5.0.6 spec/factories/users.rb
coalescing_panda-5.0.4 spec/factories/users.rb
coalescing_panda-5.0.3 spec/factories/users.rb
coalescing_panda-5.0.2 spec/factories/users.rb
coalescing_panda-5.0.1 spec/factories/users.rb
coalescing_panda-5.0.0 spec/factories/users.rb
coalescing_panda-5.0.0.beta.2 spec/factories/users.rb
coalescing_panda-5.0.0.beta.1 spec/factories/users.rb
coalescing_panda-4.8.0.beta.1 spec/factories/users.rb
coalescing_panda-4.7.0 spec/factories/users.rb
coalescing_panda-4.6.1 spec/factories/users.rb
coalescing_panda-4.6.0 spec/factories/users.rb
coalescing_panda-4.6.0.rc3 spec/factories/users.rb
coalescing_panda-4.6.0.rc2 spec/factories/users.rb