Skip to content

Commit 117d905

Browse files
committed
Ruby 2.4 compatibility when loading spec test YAML files
1 parent fe7f5a0 commit 117d905

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

spec/support/utils.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -619,7 +619,7 @@ def match_with_type?(expected, actual)
619619
BSON::Timestamp,
620620
BSON::Undefined,
621621
]
622-
if RUBY_VERSION.start_with?("2.5")
622+
if RUBY_VERSION < '2.6'
623623
YAML.safe_load(File.read(path), permitted_classes, [], true)
624624
else
625625
# Here we have Ruby 2.6+ that supports the new syntax of `safe_load``.

0 commit comments

Comments
 (0)