Removed calls to the now inexistent order.create_shipment! from specs

This commit is contained in:
luisramos0
2018-09-07 11:56:26 +01:00
parent ce7c7b3867
commit d6cff9bc68
2 changed files with 0 additions and 6 deletions

View File

@@ -185,7 +185,6 @@ describe Spree::Order do
let(:shipping_method) { create(:shipping_method) }
before do
order.create_shipment!
order.reload
order.state = 'complete'
order.shipment.update!(order)
@@ -214,7 +213,6 @@ describe Spree::Order do
let(:shipping_method) { create(:shipping_method) }
before do
order.create_shipment!
order.payment_state = 'paid'
order.state = 'complete'
order.shipment.update!(order)
@@ -233,7 +231,6 @@ describe Spree::Order do
before do
Spree::Config.shipment_inc_vat = true
Spree::Config.shipping_tax_rate = 0.25
order.create_shipment!
end
it "returns the shipping tax" do
@@ -267,7 +264,6 @@ describe Spree::Order do
before do
Spree::Config.shipment_inc_vat = true
Spree::Config.shipping_tax_rate = 0.25
order.create_shipment!
order.reload
end
@@ -301,7 +297,6 @@ describe Spree::Order do
before do
Spree::Config.shipment_inc_vat = true
Spree::Config.shipping_tax_rate = tax_rate15.amount
order.create_shipment!
Spree::TaxRate.adjust(order)
order.reload.update_distribution_charge!
end