mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-02-11 23:17:48 +00:00
Merge pull request #3014 from luisramos0/2-0-payments_spec
[Spree Upgrade] Fix admin payments spec
This commit is contained in:
@@ -17,9 +17,9 @@ feature '
|
||||
end
|
||||
|
||||
context "with sensitive payment fee" do
|
||||
let(:payment_method) { order.distributor.payment_methods.first }
|
||||
|
||||
before do
|
||||
payment_method = create(:payment_method, distributors: [order.distributor])
|
||||
|
||||
# This calculator doesn't handle a `nil` order well.
|
||||
# That has been useful in finding bugs. ;-)
|
||||
payment_method.calculator = Spree::Calculator::FlatPercentItemTotal.new
|
||||
|
||||
Reference in New Issue
Block a user