Skip to content

Commit

Permalink
Remove reference to Billing::Integrations
Browse files Browse the repository at this point in the history
This is a remnant of when all offsites gateway were extracted to
`OffsitPayments`. The namespace `Billing::Integrations` doesn't
exist anymore.
  • Loading branch information
Pierre Nespo authored and pi3r committed Jun 29, 2020
1 parent 816e7f8 commit be9fb7c
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 43 deletions.
1 change: 1 addition & 0 deletions CHANGELOG
Original file line number Diff line number Diff line change
@@ -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
Expand Down
13 changes: 0 additions & 13 deletions lib/active_merchant/billing/base.rb
Original file line number Diff line number Diff line change
Expand Up @@ -39,19 +39,6 @@ def self.gateway(name)
end
end

# Return the matching integration module
# You can then get the notification from the module
# * <tt>bogus</tt>: Bogus - Does nothing (for testing)
# * <tt>chronopay</tt>: Chronopay
# * <tt>paypal</tt>: 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
Expand Down
30 changes: 0 additions & 30 deletions test/test_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit be9fb7c

Please sign in to comment.