Sha256: 161a114c7d0239d171edb89257ba776f95b307f42ebf47b0c1b5be6c9af9a979

Contents?: true

Size: 312 Bytes

Versions: 113

Compression:

Stored size: 312 Bytes

Contents

FactoryGirl.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 {FactoryGirl.create(:user).id}
  end
end

Version data entries

113 entries across 109 versions & 7 rubygems

Version Path
enju_bookmark-0.2.1 spec/factories/profile.rb
enju_biblio-0.2.3 spec/factories/profile.rb
enju_library-0.2.3 spec/factories/profile.rb
enju_grid-0.2.0 spec/factories/profile.rb
enju_biblio-0.2.2 spec/factories/profile.rb
enju_event-0.2.1 spec/factories/profile.rb
enju_leaf-1.2.1 vendor/bundle/ruby/2.3/gems/enju_biblio-0.2.1/spec/factories/profile.rb
enju_leaf-1.2.1 vendor/bundle/ruby/2.3/gems/enju_library-0.2.1/spec/factories/profile.rb
enju_leaf-1.2.1 vendor/bundle/ruby/2.3/gems/enju_biblio-0.2.0/spec/factories/profile.rb
enju_leaf-1.2.1 vendor/bundle/ruby/2.3/bundler/gems/enju_library-d36f415e177e/spec/factories/profile.rb
enju_leaf-1.2.1 vendor/bundle/ruby/2.3/gems/enju_library-0.2.2/spec/factories/profile.rb
enju_library-0.2.2 spec/factories/profile.rb
enju_biblio-0.2.1 spec/factories/profile.rb
enju_library-0.2.1 spec/factories/profile.rb
enju_bookmark-0.2.0 spec/factories/profile.rb
enju_event-0.2.0 spec/factories/profile.rb
enju_library-0.2.0 spec/factories/profile.rb
enju_biblio-0.2.0 spec/factories/profile.rb
enju_library-0.2.0.beta.10 spec/factories/profile.rb
enju_biblio-0.2.0.beta.4 spec/factories/profile.rb