Sha256: 99c04ac878946ce1d47e2a3636aec3406c7441455689cbb9bc4c1283fa34db96
Contents?: true
Size: 531 Bytes
Versions: 1
Compression:
Stored size: 531 Bytes
Contents
Factory.define(:ppx_order) do |record| # associations: record.association(:user, :factory => :user) record.association(:bill_address, :factory => :address) record.association(:shipping_method, :factory => :shipping_method) record.ship_address { |ship_address| Factory(:ppx_address, :city => "Chevy Chase", :zipcode => "20815") } end Factory.define :ppx_order_with_totals, :parent => :order do |f| f.after_create { |order| FactoryGirl.create(:line_item, :order => order, :price => 10) and order.line_items.reload } end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
spree_paypal_express-1.1.0 | spec/factories/order_factory.rb |