Skip to content

Commit

Permalink
Fix invalid schema_root examples
Browse files Browse the repository at this point in the history
The previous schema_root values leads to a file not found error: they are
absolute paths instead of relative paths.
  • Loading branch information
MarkyMarkMcDonald authored and seanpdoyle committed May 30, 2018
1 parent 7c2a048 commit a11a4ef
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Expand Up @@ -37,7 +37,7 @@ First, configure it in your test suite's helper file:
```ruby
require "json_matchers/rspec"

JsonMatchers.schema_root = "/spec/support/api/schemas"
JsonMatchers.schema_root = "spec/support/api/schemas"
```

#### Minitest
Expand All @@ -48,7 +48,7 @@ JsonMatchers.schema_root = "/spec/support/api/schemas"
require "minitest/autorun"
require "json_matchers/minitest/assertions"

JsonMatchers.schema_root = "/test/support/api/schemas"
JsonMatchers.schema_root = "test/support/api/schemas"

Minitest::Test.send(:include, JsonMatchers::Minitest::Assertions)
```
Expand Down

0 comments on commit a11a4ef

Please sign in to comment.