-
Notifications
You must be signed in to change notification settings - Fork 23
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Matchers to handle data arrays #27
Comments
@BrennickL it would be great to leave a more concrete example. I'm not sure I understand fully what do you mean by data arrays. Btw, have you seen this section? |
@stas I think I understand what the OPs problem is because I'm facing a similar one.
However what you get if you pass in a structure to test like
is
because https://github.com/jsonapi-rb/jsonapi-rspec/blob/master/lib/jsonapi/rspec/relationships.rb#L9 can't handle arrays. |
@kassi would you be kind to review this test and help me understand how's that different from your example: |
@kassi Your input is ill-formed. Your
Cf. https://jsonapi.org/format/#document-resource-object-linkage |
Expected Behavior
Should be able to handle Arrays.
Actual Behavior
Does not handle arrays.
Steps to Reproduce the Problem
Specifications
Summary: RSpec matchers for JSON API.
Homepage: https://github.com/jsonapi-rb/jsonapi-rspec
Path: /Users/brennick.langston/.rbenv/versions/2.3.7/lib/ruby/gems/2.3.0/gems/jsonapi-rspec-0.0.10
ruby 2.3.7p456 (2018-03-28 revision 63024) [x86_64-darwin19]
The text was updated successfully, but these errors were encountered: