Sha256: 774f6bf4ec3785b3746dd16ac5e2dc0acd938dad1f77d5dd7e9ad07411e20047
Contents?: true
Size: 478 Bytes
Versions: 3
Compression:
Stored size: 478 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| Factory(:line_item, :order => order) } end
Version data entries
3 entries across 3 versions & 2 rubygems