Skip to content

Commit

Permalink
Merge pull request #59 from solidusio/kennyadsl/fix-combined
Browse files Browse the repository at this point in the history
Fix combined_first_and_last_name_in_address version
  • Loading branch information
kennyadsl authored Jan 27, 2021
2 parents 1793442 + fc5e06e commit 81d1bed
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib/solidus_support.rb
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ def reset_spree_preferences_deprecated?
end

def combined_first_and_last_name_in_address?
versions_before_preference = Gem::Requirement.new('< 2.10')
versions_before_preference = Gem::Requirement.new('< 2.11.0')
versions_after_preference = Gem::Requirement.new('>= 3.0.0.alpha')

return false if versions_before_preference.satisfied_by?(Spree.solidus_gem_version)
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 @@ -59,7 +59,7 @@
end

context 'when Solidus has preference to choose if combine addresses fields' do
let(:solidus_version) { '2.10.3' }
let(:solidus_version) { '2.11.3' }
before do
allow(Spree::Config)
.to receive(:use_combined_first_and_last_name_in_address)
Expand Down

0 comments on commit 81d1bed

Please sign in to comment.