Sha256: d531706c4f13d58aac479ac0f1874a62124e1bfd232e27d75a393c1e4471adf6

Contents?: true

Size: 264 Bytes

Versions: 13

Compression:

Stored size: 264 Bytes

Contents

FactoryBot.define do
  factory :profile, class: Profile do |f|
    f.user_group {UserGroup.first}
    f.required_role {Role.find_by(name: 'User')}
    f.sequence(:user_number){|n| "user_number_#{n}"}
    f.library {Library.find(2)}
    f.locale { 'ja' }
  end
end

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
enju_circulation-0.3.11 spec/factories/profile.rb
enju_circulation-0.3.10 spec/factories/profile.rb
enju_circulation-0.3.9 spec/factories/profile.rb
enju_circulation-0.4.0.rc.1 spec/factories/profile.rb
enju_circulation-0.3.8 spec/factories/profile.rb
enju_circulation-0.3.7 spec/factories/profile.rb
enju_circulation-0.4.0.beta.4 spec/factories/profile.rb
enju_circulation-0.4.0.beta.3 spec/factories/profile.rb
enju_circulation-0.3.6 spec/factories/profile.rb
enju_circulation-0.4.0.beta.2 spec/factories/profile.rb
enju_circulation-0.4.0.beta.1 spec/factories/profile.rb
enju_circulation-0.3.5 spec/factories/profile.rb
enju_circulation-0.3.4 spec/factories/profile.rb