Module: JsonMatchers
- Defined in:
- lib/json_matchers.rb,
lib/json_matchers/rspec.rb,
lib/json_matchers/errors.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/configuration.rb,
lib/json_matchers/minitest/assertions.rb
Defined Under Namespace
Modules: Minitest
Classes: Assertion, Configuration, Matcher, Payload, Validator
Constant Summary
collapse
- InvalidSchemaError =
Class.new(StandardError)
- MissingSchema =
Class.new(Errno::ENOENT)
- VERSION =
"0.8.0"
Class Attribute Summary collapse
Class Method Summary
collapse
Class Attribute Details
.schema_root ⇒ Object
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
.configuration ⇒ Object
2
3
4
|
# File 'lib/json_matchers/configuration.rb', line 2
def self.configuration
@configuration ||= Configuration.new
end
|
6
7
8
|
# File 'lib/json_matchers/configuration.rb', line 6
def self.configure
yield(configuration)
end
|
.path_to_schema(schema_name) ⇒ Object
11
12
13
|
# File 'lib/json_matchers.rb', line 11
def self.path_to_schema(schema_name)
Pathname(schema_root).join("#{schema_name}.json")
end
|