diff --git a/CHANGELOG b/CHANGELOG index 4f4d436da6c..c8cc8590dcb 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -1,6 +1,7 @@ = ActiveMerchant CHANGELOG == HEAD +* Remove reference to `Billing::Integrations` [pi3r] #3692 * DLocal: Handle nil address1 [molbrown] #3661 * Braintree: Add travel and lodging fields [leila-alderman] #3668 * Stripe: strict_encode64 api key [britth] #3672 diff --git a/lib/active_merchant/billing/base.rb b/lib/active_merchant/billing/base.rb index 5392189e46b..269cf394512 100644 --- a/lib/active_merchant/billing/base.rb +++ b/lib/active_merchant/billing/base.rb @@ -39,19 +39,6 @@ def self.gateway(name) end end - # Return the matching integration module - # You can then get the notification from the module - # * bogus: Bogus - Does nothing (for testing) - # * chronopay: Chronopay - # * paypal: Paypal - # - # chronopay = ActiveMerchant::Billing::Base.integration('chronopay') - # notification = chronopay.notification(raw_post) - # - def self.integration(name) - Billing::Integrations.const_get(name.to_s.downcase.camelize) - end - # A check to see if we're in test mode def self.test? mode == :test diff --git a/test/test_helper.rb b/test/test_helper.rb index 5d96ab5de81..417b18d9d5b 100644 --- a/test/test_helper.rb +++ b/test/test_helper.rb @@ -322,36 +322,6 @@ def dump_transcript_and_fail(gateway, amount, credit_card, params) end end -module ActionViewHelperTestHelper - def self.included(base) - base.send(:include, ActiveMerchant::Billing::Integrations::ActionViewHelper) - base.send(:include, ActionView::Helpers::FormHelper) - base.send(:include, ActionView::Helpers::FormTagHelper) - base.send(:include, ActionView::Helpers::UrlHelper) - base.send(:include, ActionView::Helpers::TagHelper) - base.send(:include, ActionView::Helpers::CaptureHelper) - base.send(:include, ActionView::Helpers::TextHelper) - base.send(:attr_accessor, :output_buffer) - end - - def setup - @controller = Class.new do - attr_reader :url_for_options - def url_for(options, *parameters_for_method_reference) - @url_for_options = options - end - end - @controller = @controller.new - @output_buffer = '' - end - - protected - - def protect_against_forgery? - false - end -end - class MockResponse attr_reader :code, :body, :message attr_accessor :headers