We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bdc73ee commit bd72beaCopy full SHA for bd72bea
README.md
@@ -48,6 +48,17 @@ Available matchers:
48
* `expect(document).to have_jsonapi_object`
49
* `expect(document).to have_jsonapi_object('version' => '1.0')`
50
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
62
## Advanced examples
63
64
Checking for an included resource:
0 commit comments