Sha256: 227136219badb3bc0a551816698e63e219b6e31d10cc986f5a4526975c7a43f2

Contents?: true

Size: 267 Bytes

Versions: 47

Compression:

Stored size: 267 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"
  end
end

Version data entries

47 entries across 47 versions & 4 rubygems

Version Path
enju_subject-0.2.2 spec/factories/profile.rb
enju_subject-0.2.1 spec/factories/profile.rb
enju_question-0.2.0 spec/factories/profile.rb
enju_purchase_request-0.2.0 spec/factories/profile.rb
enju_subject-0.2.0 spec/factories/profile.rb
enju_subject-0.2.0.beta.5 spec/factories/profile.rb
enju_question-0.2.0.beta.4 spec/factories/profile.rb
enju_purchase_request-0.2.0.beta.2 spec/factories/profile.rb
enju_subject-0.2.0.beta.4 spec/factories/profile.rb
enju_subject-0.2.0.beta.3 spec/factories/profile.rb
enju_question-0.2.0.beta.3 spec/factories/profile.rb
enju_question-0.2.0.beta.2 spec/factories/profile.rb
enju_subject-0.2.0.beta.2 spec/factories/profile.rb
enju_question-0.2.0.beta.1 spec/factories/profile.rb
enju_subject-0.2.0.beta.1 spec/factories/profile.rb
enju_purchase_request-0.1.1 spec/factories/profile.rb
enju_question-0.1.1 spec/factories/profile.rb
enju_subject-0.1.1 spec/factories/profile.rb
enju_question-0.1.0 spec/factories/profile.rb
enju_purchase_request-0.1.0 spec/factories/profile.rb