Module: JsonMatchers

Defined in:
lib/json_matchers.rb,
lib/json_matchers/rspec.rb,
lib/json_matchers/errors.rb,
lib/json_matchers/parser.rb,
lib/json_matchers/matcher.rb,
lib/json_matchers/payload.rb,
lib/json_matchers/version.rb,
lib/json_matchers/assertion.rb,
lib/json_matchers/validator.rb,
lib/json_matchers/minitest/assertions.rb

Defined Under Namespace

Modules: Minitest Classes: Assertion, Matcher, Parser, Payload, Validator

Constant Summary collapse

InvalidSchemaError =
Class.new(StandardError)
MissingSchema =
Class.new(Errno::ENOENT)
VERSION =
"0.11.1".freeze

Class Attribute Summary collapse

Class Method Summary collapse

Class Attribute Details

.schema_rootObject

Returns the value of attribute schema_root.



8
9
10
# File 'lib/json_matchers.rb', line 8

def schema_root
  @schema_root
end

Class Method Details

.path_to_schema(schema_name) ⇒ Object



11
12
13
# File 'lib/json_matchers.rb', line 11

def self.path_to_schema(schema_name)
  Pathname.new(schema_root).join("#{schema_name}.json")
end