Delete now unused method clean_name

This commit is contained in:
Maikel Linke
2026-02-13 12:36:26 +11:00
parent 9da3b0ea01
commit 482c2a4a6e
2 changed files with 0 additions and 12 deletions

View File

@@ -113,11 +113,6 @@ module Spree
distributors.include?(distributor)
end
def self.clean_name
scope = "spree.admin.payment_methods.providers"
I18n.t(name.demodulize.downcase, scope:)
end
private
def distributor_validation

View File

@@ -131,13 +131,6 @@ RSpec.describe Spree::PaymentMethod do
expect(pm.errors.to_a).to eq(["Name can't be blank", "At least one hub must be selected"])
end
it "generates a clean name for known Payment Method types" do
expect(Spree::PaymentMethod::Check.clean_name)
.to eq('Cash/EFT/etc. (payments for which automatic validation is not required)')
expect(Spree::Gateway::PayPalExpress.clean_name).to eq('PayPal Express')
expect(Spree::Gateway::StripeSCA.clean_name).to eq('Stripe SCA')
end
it "computes the amount of fees" do
order = create(:order)