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:
Luis Ramos
2020-08-07 17:31:39 +01:00
parent 49a60374e6
commit 09b7aa134b

View File

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