Sha256: d02293fa3f6f0a98fec7ede7d5a54811b4556466c3216528d0a87d8b11f2f0ac
Contents?: true
Size: 560 Bytes
Versions: 22
Compression:
Stored size: 560 Bytes
Contents
Factory.define :shipping_method do |f| f.zone {|a| Zone.find_by_name("GlobalZone") || a.association(:global_zone) } f.name 'UPS Ground' f.calculator { |sm| Factory(:calculator, :calculable_id => sm.object_id, :calculable_type => "ShippingMethod") } end Factory.define :free_shipping_method, :class => ShippingMethod do |f| f.zone {|a| Zone.find_by_name("GlobalZone") || a.association(:global_zone) } f.name 'UPS Ground' f.calculator { |sm| Factory(:no_amount_calculator, :calculable_id => sm.object_id, :calculable_type => "ShippingMethod") } end
Version data entries
22 entries across 22 versions & 6 rubygems