Skip to content

Commit

Permalink
Merge pull request #46 from nebulab/elia/deprecated-solidus_gem_version
Browse files Browse the repository at this point in the history
Stop using SolidusSupport.solidus_gem_version
  • Loading branch information
kennyadsl authored Jun 5, 2020
2 parents c7ce0e2 + 475d331 commit b4629c3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions lib/solidus_support.rb
Original file line number Diff line number Diff line change
Expand Up @@ -18,12 +18,12 @@ def solidus_gem_version

def reset_spree_preferences_deprecated?
first_version_without_reset = Gem::Requirement.new('>= 2.9')
first_version_without_reset.satisfied_by?(solidus_gem_version)
first_version_without_reset.satisfied_by?(Spree.solidus_gem_version)
end

def new_gateway_code?
first_version_with_new_gateway_code = Gem::Requirement.new('>= 2.3')
first_version_with_new_gateway_code.satisfied_by?(solidus_gem_version)
first_version_with_new_gateway_code.satisfied_by?(Spree.solidus_gem_version)
end

def payment_source_parent_class
Expand Down
2 changes: 1 addition & 1 deletion spec/solidus_support_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
let(:credit_card) { nil }

before do
allow(described_class).to receive(:solidus_gem_version) do
allow(Spree).to receive(:solidus_gem_version) do
Gem::Version.new(solidus_version)
end
end
Expand Down

0 comments on commit b4629c3

Please sign in to comment.