Sha256: a14f6bfc21f833e769c3bcd49d5c3ff88c8b152f5df5b362ca5680d7e92c1892

Contents?: true

Size: 259 Bytes

Versions: 2

Compression:

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

2 entries across 2 versions & 1 rubygems

Version Path
enju_circulation-0.3.0.rc.1 spec/factories/profile.rb
enju_circulation-0.3.0.beta.1 spec/factories/profile.rb