Skip to content

Commit 163730e

Browse files
committed
Try to make provenance extension specs pass on JRuby 9.2 and 9.3
All three JRuby versions tested in CI have different behavior.
1 parent c4e43e2 commit 163730e

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

spec/extensions/provenance_spec.rb

+3-1
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,10 @@ def ds
1313
where(:c)
1414
end
1515

16-
if RUBY_ENGINE == 'jruby'
16+
if RUBY_ENGINE == 'jruby' && RUBY_VERSION >= '3.1'
1717
line1 = line2 = line3 = line + 3
18+
elsif RUBY_ENGINE == 'jruby' && RUBY_VERSION < '2.6'
19+
line1 = line2 = line3 = line
1820
elsif RUBY_VERSION >= '2'
1921
line1 = line+1
2022
line2 = line+2

0 commit comments

Comments
 (0)