From 09b7aa134b77eaee9b1d2e395baebde1a815799a Mon Sep 17 00:00:00 2001 From: Luis Ramos Date: Fri, 7 Aug 2020 17:31:39 +0100 Subject: [PATCH] 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 --- spec/features/admin/payment_method_spec.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/spec/features/admin/payment_method_spec.rb b/spec/features/admin/payment_method_spec.rb index 2cdc226bdf..851c1be1a0 100644 --- a/spec/features/admin/payment_method_spec.rb +++ b/spec/features/admin/payment_method_spec.rb @@ -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'