Permalink
Browse files

Test the more robust JSON type matcher via Cucumber step

  • Loading branch information...
1 parent 047a176 commit bb03c8977c9690f3054f411b0fb050e548cf66c5 @laserlemon laserlemon committed Feb 25, 2012
Showing with 7 additions and 1 deletion.
  1. +7 −1 features/types.feature
View
8 features/types.feature
@@ -4,15 +4,21 @@ Feature: Types
"""
{
"array": [],
+ "false": true,
"float": 10.0,
"hash": {},
"integer": 10,
- "string": "json_spec"
+ "string": "json_spec",
+ "true": true
}
"""
When I get the JSON
Then the JSON should be a hash
And the JSON at "array" should be an array
+ And the JSON at "false" should be a boolean
And the JSON at "float" should be a float
And the JSON at "hash" should be a hash
+ And the JSON at "hash" should be an object
And the JSON at "integer" should be an integer
+ And the JSON at "string" should be a string
+ And the JSON at "true" should be a boolean

0 comments on commit bb03c89

Please sign in to comment.