Skip to content
New issue

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

Add have_json_value matcher #103

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

mcnelson
Copy link

@mcnelson mcnelson commented Jul 11, 2018

This is a continuation of this PR. I've been looking for nicer ways to test JSON responses and came across this gem.

Currently the best way to test single values is something like:

expect(response.body).to be_json_eql(some_string.inspect).at_path('foo/bar/id')

Since the other PR is years old now and seemingly abandoned, I took a minute to make the changes requested and reopen this.

Let me know if I missed anything.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants