Sha256: 01be750d896f30937d4aa08b239fcfa4579ec77e13c7d84a36a674f9c37dd6f4
Contents?: true
Size: 1.35 KB
Versions: 1
Compression:
Stored size: 1.35 KB
Contents
class ShopAddressesDataset < Dataset::Base uses :shop_orders def load create_record :shop_billing, :order_billing, :name => 'Billing Address', :phone => '1800 000 000', :business => 'The Business', :email => 'billing@billing.com', :unit => 'a', :street_1 => '1 Bill Street', :street_2 => 'Street Bill 1', :city => 'Billvilles', :state => 'BI', :country => 'Billington', :of_type => 'billing', :postcode => '1234', :addressable_id => shop_orders(:several_items).id, :addressable_type => 'ShopOrder' create_record :shop_shipping, :order_shipping, :name => 'Shipping Address', :phone => '1800 000 000', :email => 'shipping@shipping.com', :business => 'The Business', :unit => 'b', :street_1 => '2 Ship Street', :street_2 => 'Street Ship 2', :city => 'Shipvilles', :state => 'SH', :country => 'Shippington', :of_type => 'shipping', :postcode => '1234', :addressable_id => shop_orders(:several_items).id, :addressable_type => 'ShopOrder' end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
radiant-shop-extension-0.94.8 | spec/datasets/shop_addresses.rb |