fix payment methods table to show proper provider name

This commit is contained in:
Eduardo
2020-05-30 18:04:43 -03:00
parent a91c81059f
commit 5ed5ed2873
2 changed files with 11 additions and 1 deletions

View File

@@ -185,6 +185,16 @@ feature '
expect(page).not_to have_content payment_method3.name
end
it "shows only the providers of the existing payment methods" do
payment_method1
payment_method2
payment_method3
visit spree.admin_payment_methods_path
expect(page).to have_content "Cash/EFT/etc. (payments for which automatic validation is not required)", count: 2
end
it "does not show duplicates of payment methods" do
payment_method1
payment_method2