Skip to content

Commit

Permalink
fix issues with appraisal file spec
Browse files Browse the repository at this point in the history
  • Loading branch information
ttstarck committed Jul 15, 2024
1 parent 3233f4a commit 11f6ecf
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .ruby-version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
3.1.6
3.0.6
4 changes: 2 additions & 2 deletions spec/appraisal/matrix/extensions/appraisal_file_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@
context "with a block with arguments" do
subject(:run_matrix) do
appraisal_matrix(**desired_gems) do |rails:|
if rails < "7"
if rails < Gem::Version.new("7")
gem "sqlite3", "< 2"
else
gem "sqlite3", "~> 2.5"
Expand Down Expand Up @@ -206,7 +206,7 @@
context "with a block" do
subject(:run_matrix) do
appraisal_matrix(**desired_gems) do |rails:, sidekiq:|
if rails < "7" && sidekiq < "6"
if rails < Gem::Version.new("7") && sidekiq < Gem::Version.new("6")
gem "sqlite3", "< 2"
else
gem "sqlite3", "~> 2.5"
Expand Down

0 comments on commit 11f6ecf

Please sign in to comment.