Skip to content

Commit

Permalink
Use cached resolver for json-schema-test-suite
Browse files Browse the repository at this point in the history
  • Loading branch information
davishmcclurg committed Jun 7, 2023
1 parent 4e0695e commit 85a3afa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/json_schema_test_suite_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ class JSONSchemaTestSuiteTest < Minitest::Test
end

def test_json_schema_test_suite
ref_resolver = proc do |uri|
ref_resolver = JSONSchemer::CachedResolver.new do |uri|
if uri.host == 'localhost'
path = Pathname.new(__dir__).join('..', 'JSON-Schema-Test-Suite', 'remotes', uri.path.gsub(/\A\//, ''))
JSON.parse(path.read)
Expand Down

0 comments on commit 85a3afa

Please sign in to comment.