mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-02-04 22:16:08 +00:00
Ammend payment method spec and specify a calculator so that the default calculator is not the spree one that is based on a calculator that does not exist in OFN: Spree::Calculator::FlatRate
This commit is contained in:
@@ -81,7 +81,8 @@ feature '
|
||||
end
|
||||
|
||||
scenario "updating a payment method", js: true do
|
||||
payment_method = create(:payment_method, distributors: [@distributors[0]])
|
||||
payment_method = create(:payment_method, distributors: [@distributors[0]],
|
||||
calculator: build(:calculator_flat_rate))
|
||||
login_as_admin_and_visit spree.edit_admin_payment_method_path payment_method
|
||||
|
||||
fill_in 'payment_method_name', with: 'New PM Name'
|
||||
|
||||
Reference in New Issue
Block a user