From 62951f7d483aef34e0be21bf05c153915ae69679 Mon Sep 17 00:00:00 2001 From: luisramos0 Date: Mon, 10 Sep 2018 15:16:19 +0100 Subject: [PATCH] Removing duplicated factories inserted by previous PRs: 2668 and 2670 --- spec/factories.rb | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/spec/factories.rb b/spec/factories.rb index 4824f5be6b..9c0a88e318 100644 --- a/spec/factories.rb +++ b/spec/factories.rb @@ -280,16 +280,6 @@ FactoryBot.define do after(:create) { |c| c.set_preference(:per_kg, 0.5); c.save! } end - factory :shipping_method_with_flat_rate, parent: :shipping_method do - calculator { Spree::Calculator::FlatRate.new(preferred_amount: 50.0) } - end - - factory :shipment_with_flat_rate, parent: :shipment do - after(:create) do |shipment| - shipment.add_shipping_method(create(:shipping_method_with_flat_rate), true) - end - end - factory :order_with_totals_and_distribution, :parent => :order do #possibly called :order_with_line_items in newer Spree distributor { create(:distributor_enterprise) } order_cycle { create(:simple_order_cycle) }