mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-03-01 02:03:22 +00:00
Update factory and specs
This commit is contained in:
@@ -5,7 +5,6 @@ FactoryBot.define do
|
||||
association(:adjustable, factory: :order)
|
||||
amount { 100.0 }
|
||||
label { 'Shipping' }
|
||||
association(:source, factory: :shipment)
|
||||
eligible { true }
|
||||
end
|
||||
end
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user