From 1c018bdd9058db8647f0f9c78d858119b9af4ef2 Mon Sep 17 00:00:00 2001 From: filipefurtad0 Date: Wed, 3 Mar 2021 08:59:56 +0000 Subject: [PATCH] fixes a pending test case for hubs w/ several distributors --- spec/features/admin/payment_method_spec.rb | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/spec/features/admin/payment_method_spec.rb b/spec/features/admin/payment_method_spec.rb index 39eec867a1..89910356c5 100644 --- a/spec/features/admin/payment_method_spec.rb +++ b/spec/features/admin/payment_method_spec.rb @@ -196,7 +196,7 @@ feature ' expect(page).to have_selector 'td', text: 'Two', count: 1 end - pending "shows me only payment methods for the enterprise I select" do + it "shows me only payment methods for the enterprise I select" do payment_method1 payment_method2 @@ -215,8 +215,11 @@ feature ' click_link "Payment Methods" end - expect(page).not_to have_content payment_method1.name + expect(page).to have_content payment_method1.name expect(page).to have_content payment_method2.name + + expect(page).to have_checked_field "enterprise_payment_method_ids_#{payment_method2.id}" + expect(page).to have_unchecked_field "enterprise_payment_method_ids_#{payment_method1.id}" end end end