mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-01-24 20:36:49 +00:00
fix payment methods table to show proper provider name
This commit is contained in:
@@ -32,7 +32,7 @@
|
||||
- method.distributors.each do |distributor|
|
||||
= distributor.name
|
||||
%br/
|
||||
%td= method.type
|
||||
%td= method.class.clean_name
|
||||
%td.align-center= method.environment.to_s.titleize
|
||||
%td.align-center= method.display_on.blank? ? t('.both') : t('.' + method.display_on.to_s)
|
||||
%td.align-center= method.active ? t('.active_yes') : t('.active_no')
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user