Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove reference to Billing::Integrations #3692

Merged
merged 1 commit into from
Jun 29, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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