Skip to content

Commit 6c88530

Browse files
committed
Use json version check for incompatible files
Looks like json was upgraded on truffleruby-head and these files are no longer raising `Encoding::CompatibilityError` errors.
1 parent 8b292d8 commit 6c88530

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

test/json_schema_test_suite_test.rb

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
require 'test_helper'
22

33
class JSONSchemaTestSuiteTest < Minitest::Test
4-
INCOMPATIBLE_FILES = if RUBY_ENGINE == 'truffleruby'
4+
# https://github.com/flori/json/pull/483
5+
INCOMPATIBLE_FILES = if RUBY_ENGINE == 'truffleruby' && Gem::Version.new(JSON::VERSION) < '2.6.3'
56
# :nocov:
67
Set[
78
'JSON-Schema-Test-Suite/tests/draft2020-12/optional/ecmascript-regex.json',

0 commit comments

Comments
 (0)