Update factory and specs

This commit is contained in:
Matt-Yorkley
2021-03-19 17:02:14 +00:00
parent b6038c01a3
commit ebce32c57b
2 changed files with 0 additions and 5 deletions

View File

@@ -5,7 +5,6 @@ FactoryBot.define do
association(:adjustable, factory: :order)
amount { 100.0 }
label { 'Shipping' }
association(:source, factory: :shipment)
eligible { true }
end
end

View File

@@ -37,13 +37,11 @@ describe Spree::Order do
before do
@adj1 = line_item1.adjustments.create(
amount: 2,
source: line_item1,
label: "VAT 5%"
)
@adj2 = line_item1.adjustments.create(
amount: 5,
source: line_item1,
label: "VAT 10%"
)
end
@@ -58,13 +56,11 @@ describe Spree::Order do
before do
@adj1 = line_item1.adjustments.create(
amount: 2,
source: line_item1,
label: "VAT 5%"
)
@adj2 = line_item2.adjustments.create(
amount: 5,
source: line_item2,
label: "VAT 10%"
)
end