Merge pull request #3014 from luisramos0/2-0-payments_spec

[Spree Upgrade] Fix admin payments spec
This commit is contained in:
Maikel
2018-11-15 13:02:28 +11:00
committed by GitHub

View File

@@ -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