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

Version Path
spree_core-0.70.7 lib/spree_core/testing_support/factories/shipping_method_factory.rb
spree_core-0.70.6 lib/spree_core/testing_support/factories/shipping_method_factory.rb
apispree_core-0.0.0 lib/spree_core/testing_support/factories/shipping_method_factory.rb
My-Commerce_core-1.1.0 lib/spree_core/testing_support/factories/shipping_method_factory.rb
My-Commerce_core-1.0.0 lib/spree_core/testing_support/factories/shipping_method_factory.rb
MyCommerceapi-1.0.0 core/lib/spree_core/testing_support/factories/shipping_method_factory.rb
MyCommerce-0.0.3 core/lib/spree_core/testing_support/factories/shipping_method_factory.rb
rfcommerce_core-0.0.3 lib/spree_core/testing_support/factories/shipping_method_factory.rb
spree_core-0.60.6 lib/spree_core/testing_support/factories/shipping_method_factory.rb
spree_core-0.70.5 lib/spree_core/testing_support/factories/shipping_method_factory.rb
spree_core-0.70.4 lib/spree_core/testing_support/factories/shipping_method_factory.rb
spree_core-0.60.5 lib/spree_core/testing_support/factories/shipping_method_factory.rb
spree_core-0.70.3 lib/spree_core/testing_support/factories/shipping_method_factory.rb
spree_core-0.70.2 lib/spree_core/testing_support/factories/shipping_method_factory.rb
spree_core-0.60.4 lib/spree_core/testing_support/factories/shipping_method_factory.rb
spree_core-0.60.3 lib/spree_core/testing_support/factories/shipping_method_factory.rb
spree_core-0.70.1 lib/spree_core/testing_support/factories/shipping_method_factory.rb
spree_core-0.70.0 lib/spree_core/testing_support/factories/shipping_method_factory.rb
spree_core-0.60.2 lib/spree_core/testing_support/factories/shipping_method_factory.rb
spree_core-0.70.0.rc2 lib/spree_core/testing_support/factories/shipping_method_factory.rb