-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
Require only part of activemerchant #2311
Require only part of activemerchant #2311
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think its probably worth pulling out that factory girl commit into another PR, or at least getting a good understanding of why we need it now...
|
@mamhoff please rebase now that the factory bot rename is merged |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Much cleaner, less code loaded. 👍
sample/spec/spec_helper.rb
Outdated
@@ -12,6 +12,7 @@ | |||
require 'rspec/rails' | |||
require 'ffaker' | |||
require 'spree_sample' | |||
require 'factory_girl' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This will generate a warning and I don't think it is necessary after a rebase (the Gemfile will cause factory_bot to be required).
It turns out we also don't need factories at all for this test suite, so I have removed them in #2330
ActiveMerchant comes with a large list of glue code for gateways and more things that is not needed for many Solidus stores. This replaces requiring all of ActiveMerchant with just those files/classes we need.
Versions before that do not work with Rails 5, upon which we depend. With recent work on explicitly requiring only those bits of ActiveMerchant that we need, I needed to test the full range of ActiveMerchant versions for compatibility in their gem structure. That task can only be started at the first version our gem actually bundles with.
b0b7305
to
b3fb4c2
Compare
rebased and removed (now unnecessary) last commit |
ActiveMerchant is 2.5 megs of glue code that we don't need. This PR only requires those files of ActiveMerchant that we do need: Errors, Billing Response and Credit Card.
It also bumps the required ActiveMerchant Version to 1.66, as that is the first version that works with Rails 5.1.