Sha256: 3fc0d669c85e20c197e1b6058726fe09475af10782a49f52572121ea02d4afd5

Contents?: true

Size: 435 Bytes

Versions: 6

Compression:

Stored size: 435 Bytes

Contents

Factory.define(:checkout) do |record|
  record.email { Faker::Internet.email }
  record.special_instructions { Faker::Lorem.paragraphs(rand(5)+1).join("\n") }
  record.completed_at Time.now

  # associations: 
  record.association(:order)
  record.association(:bill_address, :factory => :address)
end

###### ADD YOUR CODE BELOW THIS LINE #####

Factory.define :incomplete_checkout, :parent => :checkout do |f|
  f.completed_at nil
end

Version data entries

6 entries across 6 versions & 2 rubygems

Version Path
spree-enriquez-0.9.4 test/factories/checkout_factory.rb
spree-0.9.4 test/factories/checkout_factory.rb
spree-0.9.3 test/factories/checkout_factory.rb
spree-0.9.2 test/factories/checkout_factory.rb
spree-0.9.1 test/factories/checkout_factory.rb
spree-0.9.0 test/factories/checkout_factory.rb