Created
November 13, 2013 18:16
-
-
Save miwillhite/7453716 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
| 1) ElementTemplatesController#index behaves like InheritedResources::Base#index behaves like it renders the json renders the json | |
| Failure/Error: expect(response.body).to be_json_eql(json) | |
| Expected equivalent JSON | |
| Diff: | |
| @@ -1,14 +1,10 @@ | |
| -{ | |
| - "element_templates": [ | |
| - { | |
| - "created_at": "2013-11-13T18:13:06+00:00", | |
| - "id": 1002, | |
| - "image_url": "http://www.example.com", | |
| - "message": "Test message", | |
| - "thumb_url": "http://www.example.com", | |
| - "type": "atmosphere", | |
| - "updated_at": "2013-11-13T18:13:07+00:00" | |
| +[ | |
| + { | |
| + "__null_object": false, | |
| + "name": "ElementTemplate_1002", | |
| + "options": { | |
| + "__declared_as": "Double" | |
| } | |
| - ] | |
| -} | |
| + } | |
| +] | |
| Shared Example Group: "it renders the json" called from ./spec/shared/inherited_resource_examples.rb:50 | |
| # ./spec/shared/controller_examples.rb:9:in `block (2 levels) in <top (required)>' | |
| # -e:1:in `<main>' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment