Skip to content

Commit 1a79bda

Browse files
p-mongop
andcommitted
RUBY-2451 Fix bson version condition in symbol integration test (#2131)
Co-authored-by: Oleg Pudeyev <oleg@bsdpower.com>
1 parent 3ac97d5 commit 1a79bda

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

spec/integration/bson_symbol_spec.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
end
2626

2727
it 'round-trips symbol values using the same byte buffer' do
28-
if BSON::Environment.jruby? && BSON::VERSION < "4.11.0"
28+
if BSON::Environment.jruby? && (BSON::VERSION.split('.').map(&:to_i) <=> [4, 11, 0]) < 0
2929
skip 'This test is only relevant to bson versions that increment ByteBuffer '\
3030
'read and write positions separately in JRuby, as implemented in ' \
3131
'bson version 4.11.0. For more information, see https://jira.mongodb.org/browse/RUBY-2128'

0 commit comments

Comments
 (0)