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 json_content_like to Test::Mojo #242

Closed
nikita-d opened this issue Dec 14, 2011 · 2 comments
Closed

Add json_content_like to Test::Mojo #242

nikita-d opened this issue Dec 14, 2011 · 2 comments

Comments

@nikita-d
Copy link

There's no simple way to match JSON data against regular expression. Now you have to use User-Agent and Test-More, making your code bigger and more complex.

@marcusramberg
Copy link
Member

Isn't it better to test the returned data structure with json_content_is?

@marcusramberg
Copy link
Member

Also see the example at http://mojolicio.us/perldoc/Test/Mojo#tx for how to test part of the json.

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

No branches or pull requests

2 participants