Sha256: 9af7bd26876650b72d2e54fbbf12cc45903b11d7e70447aab66a811ac655f432

Contents?: true

Size: 357 Bytes

Versions: 5

Compression:

Stored size: 357 Bytes

Contents

FactoryGirl.define do
  factory :reserve do |f|
    before(:create) do |reserve|
      profile = FactoryGirl.create(:profile)
      user = User.new(FactoryGirl.attributes_for(:user))
      user.profile = profile
      reserve.user = user
    end
    f.manifestation_id{FactoryGirl.create(:manifestation).id}
#    f.user{FactoryGirl.create(:user)}
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
enju_circulation-0.2.3 spec/factories/reserve.rb
enju_circulation-0.2.2 spec/factories/reserve.rb
enju_circulation-0.2.1 spec/factories/reserve.rb
enju_circulation-0.2.0 spec/factories/reserve.rb
enju_circulation-0.2.0.beta.4 spec/factories/reserve.rb