Sha256: 78a025f3377f51b4094a7dc080b1bd3f2288419933fcdbbd666744913ceccba0

Contents?: true

Size: 565 Bytes

Versions: 2

Compression:

Stored size: 565 Bytes

Contents

require File.expand_path('../support/test_helper', __FILE__)

class RelativeDefinitionTest < Minitest::Test

  def test_definition_schema
    assert_valid schema_fixture_path('definition_schema.json'), {"a" => 5}
  end

  def test_definition_schema_with_special_characters
    assert_valid schema_fixture_path('definition_schema_with_special_characters.json'), {"a" => 5}
  end

  def test_relative_definition
    schema = schema_fixture_path('relative_definition_schema.json')
    assert_valid schema, {"a" => 5}
    refute_valid schema, {"a" => "foo"}
  end

end

Version data entries

2 entries across 1 versions & 1 rubygems

Version Path
mountapi-0.11.1 vendor/bundle/ruby/2.7.0/bundler/gems/json-schema-2253a5ee6679/test/relative_definition_test.rb
mountapi-0.11.1 vendor/json-schema/test/relative_definition_test.rb