Finish changing class names for PayPal gateways

This commit is contained in:
Rob H
2014-08-08 23:19:13 +10:00
parent a8b823668f
commit 044a4c6816
2 changed files with 2 additions and 4 deletions

View File

@@ -39,9 +39,7 @@ Spree::Gateway.providers.each do |p|
"Cash/EFT/etc. (payments for which automatic validation is not required)"
when "Spree::Gateway::Migs"
"MasterCard Internet Gateway Service (MIGS)"
when "Spree::BillingIntegration::PaypalExpressUk"
"PayPal Express (UK)"
when "Spree::BillingIntegration::PaypalExpress"
when "Spree::Gateway::PayPalExpress"
"PayPal Express"
else
i = name.rindex('::') + 2

View File

@@ -19,7 +19,7 @@ module Spree
it "generates a clean name for known Payment Method types" do
Spree::PaymentMethod::Check.clean_name.should == "Cash/EFT/etc. (payments for which automatic validation is not required)"
Spree::Gateway::Migs.clean_name.should == "MasterCard Internet Gateway Service (MIGS)"
Spree::BillingIntegration::PaypalExpress.clean_name.should == "PayPal Express"
Spree::Gateway::PayPalExpress.clean_name.should == "PayPal Express"
# Testing else condition
Spree::Gateway::BogusSimple.clean_name.should == "BogusSimple"