-
-
Notifications
You must be signed in to change notification settings - Fork 40
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This commit modifies the RSpec Matcher to use [`JSON.pretty_generate`][docs] to improve the formatting of JSON bodies and schemata that appear in failure messages. Additionally, the `json-schema` provided error messages have been moved to the top of the failure messages, so that the reasons for failure appear above (potentially lengthy) JSON bodies. [docs]: http://ruby-doc.org/stdlib-2.0.0/libdoc/json/rdoc/JSON.html#method-i-pretty_generate
- Loading branch information
1 parent
d0d0b7b
commit 2eeb901
Showing
3 changed files
with
28 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,8 @@ | ||
master | ||
====== | ||
|
||
* Use `JSON.pretty_generate` to format error messages. | ||
|
||
0.6.0 | ||
===== | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters