Bring adjustment factory from spree_core

This commit is contained in:
Luis Ramos
2020-08-23 14:01:59 +01:00
parent 9e7e63cc94
commit e2a865476d

View File

@@ -0,0 +1,9 @@
FactoryBot.define do
factory :adjustment, class: Spree::Adjustment do
association(:adjustable, factory: :order)
amount 100.0
label 'Shipping'
association(:source, factory: :shipment)
eligible true
end
end