Skip to content

Commit a66499b

Browse files
committed
Add indifferent matching configuration option to the README.md
1 parent 88ad5f8 commit a66499b

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

README.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,17 @@ Available matchers:
4848
* `expect(document).to have_jsonapi_object`
4949
* `expect(document).to have_jsonapi_object('version' => '1.0')`
5050

51+
### Indifferent Matching
52+
```ruby
53+
# spec/spec_helpers.rb
54+
55+
RSpec.configure do |config|
56+
# ...
57+
config.allow_symbolized_jsonapi = true
58+
end
59+
```
60+
The configuration above allows the RSpec matchers to work with a symbolized jsonapi source document.
61+
5162
## Advanced examples
5263

5364
Checking for an included resource:

0 commit comments

Comments
 (0)