Sha256: 1781b274925dafce5f8b19f82f9b7b6f3eca4b92fab002810e5041bc64c0927d

Contents?: true

Size: 315 Bytes

Versions: 46

Compression:

Stored size: 315 Bytes

Contents

FactoryBot.define do
  factory :profile, class: Profile do |f|
    f.user_group_id {UserGroup.first.id}
    f.required_role_id {Role.where(name: 'User').first.id}
    f.sequence(:user_number){|n| "user_number_#{n}"}
    f.library_id { 2 }
    f.locale { "ja" }
    f.user_id {FactoryBot.create(:user).id}
  end
end

Version data entries

46 entries across 46 versions & 3 rubygems

Version Path
enju_biblio-0.3.18 spec/factories/profile.rb
enju_biblio-0.3.17 spec/factories/profile.rb
enju_biblio-0.3.16 spec/factories/profile.rb
enju_biblio-0.3.15 spec/factories/profile.rb
enju_library-0.3.11 spec/factories/profile.rb
enju_library-0.3.10 spec/factories/profile.rb
enju_biblio-0.3.14 spec/factories/profile.rb
enju_event-0.3.5 spec/factories/profile.rb
enju_biblio-0.3.13 spec/factories/profile.rb
enju_biblio-0.3.12 spec/factories/profile.rb
enju_biblio-0.3.11 spec/factories/profile.rb
enju_library-0.3.9 spec/factories/profile.rb
enju_biblio-0.3.10 spec/factories/profile.rb
enju_library-0.3.8 spec/factories/profile.rb
enju_biblio-0.3.10.rc.3 spec/factories/profile.rb
enju_biblio-0.3.10.rc.2 spec/factories/profile.rb
enju_library-0.3.8.rc.2 spec/factories/profile.rb
enju_library-0.3.8.rc.1 spec/factories/profile.rb
enju_biblio-0.3.10.rc.1 spec/factories/profile.rb
enju_biblio-0.3.9 spec/factories/profile.rb