Sha256: f5a696fcf47c4b07deb82d5447586e8657bc2618060cc6c69ce53f31de3f413d

Contents?: true

Size: 310 Bytes

Versions: 7

Compression:

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

7 entries across 7 versions & 4 rubygems

Version Path
enju_library-0.2.5 spec/factories/profile.rb
enju_biblio-0.2.5 spec/factories/profile.rb
enju_bookmark-0.2.2 spec/factories/profile.rb
enju_event-0.2.3 spec/factories/profile.rb
enju_biblio-0.2.4 spec/factories/profile.rb
enju_library-0.2.4 spec/factories/profile.rb
enju_event-0.2.2 spec/factories/profile.rb