We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
With json_spec 1.1.5 and the following test:
it "matches json content with path" do json = %({"item": {"id": "1"}}) json.should include_json(%({"id": "1"})).at_path("item") end
Failures: 1) JsonSpec::Matchers::IncludeJson matches json content Failure/Error: json.should include_json(%({"id": "1"})).at_path("item") Expected {"item": {"id":"1" }} to include {"id": "1"} at path "item" # ./spec/json_spec/matchers/include_json_spec.rb:44:in `block (2 levels) in <top (required)>' Finished in 0.07838 seconds (files took 0.16929 seconds to load) 116 examples, 1 failure Failed examples: rspec ./spec/json_spec/matchers/include_json_spec.rb:42 # JsonSpec::Matchers::IncludeJson matches json content
The text was updated successfully, but these errors were encountered:
+1
Sorry, something went wrong.
Same here. Running:
Edit: Per include_json_spec.rb that seems to be the intended behavior. 😕
No branches or pull requests
With json_spec 1.1.5 and the following test:
The text was updated successfully, but these errors were encountered: