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_biblio-0.2.0.beta.1 spec/factories/profile.rb
enju_library-0.2.0.beta.1 spec/factories/profile.rb
enju_library-0.1.2 spec/factories/profile.rb
enju_biblio-0.1.3 spec/factories/profile.rb
enju_event-0.1.19 spec/factories/profile.rb
enju_grid-0.1.1 spec/factories/profile.rb
enju_bookmark-0.1.3 spec/factories/profile.rb
enju_flower-0.1.1 spec/factories/profile.rb
enju_biblio-0.1.2 spec/factories/profile.rb
enju_library-0.1.1 spec/factories/profile.rb
enju_event-0.1.18 spec/factories/profile.rb
enju_flower-0.1.0 spec/factories/profile.rb
enju_biblio-0.1.1 spec/factories/profile.rb
enju_grid-0.1.0 spec/factories/profile.rb
enju_library-0.1.0 spec/factories/profile.rb
enju_bookmark-0.1.2 spec/factories/profile.rb
enju_biblio-0.1.0 spec/factories/profile.rb
enju_event-0.1.17 spec/factories/profile.rb
enju_grid-0.1.0.pre1 spec/factories/profile.rb
enju_bookmark-0.1.2.pre23 spec/factories/profile.rb