Skip to content

Commit

Permalink
Try to make provenance extension specs pass on JRuby 9.2 and 9.3
Browse files Browse the repository at this point in the history
All three JRuby versions tested in CI have different behavior.
  • Loading branch information
jeremyevans committed Apr 5, 2024
1 parent c4e43e2 commit 163730e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion spec/extensions/provenance_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,10 @@ def ds
where(:c)
end

if RUBY_ENGINE == 'jruby'
if RUBY_ENGINE == 'jruby' && RUBY_VERSION >= '3.1'
line1 = line2 = line3 = line + 3
elsif RUBY_ENGINE == 'jruby' && RUBY_VERSION < '2.6'
line1 = line2 = line3 = line
elsif RUBY_VERSION >= '2'
line1 = line+1
line2 = line+2
Expand Down

0 comments on commit 163730e

Please sign in to comment.