Sha256: 9560cd7afc64c563612609574911962b5f797f7343b1ed57c97577000a60b54b

Contents?: true

Size: 304 Bytes

Versions: 2

Compression:

Stored size: 304 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 { Library.find_by(name: 'kamata').id }
    f.locale { "ja" }
  end
end

Version data entries

2 entries across 2 versions & 2 rubygems

Version Path
enju_inventory-0.4.0.rc.1 spec/factories/profile.rb
enju_leaf-2.0.0.beta.1 spec/acceptance/profile.rb