Skip to content

Commit bb03c89

Browse files
committed
Test the more robust JSON type matcher via Cucumber step
1 parent 047a176 commit bb03c89

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

features/types.feature

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,15 +4,21 @@ Feature: Types
44
"""
55
{
66
"array": [],
7+
"false": true,
78
"float": 10.0,
89
"hash": {},
910
"integer": 10,
10-
"string": "json_spec"
11+
"string": "json_spec",
12+
"true": true
1113
}
1214
"""
1315
When I get the JSON
1416
Then the JSON should be a hash
1517
And the JSON at "array" should be an array
18+
And the JSON at "false" should be a boolean
1619
And the JSON at "float" should be a float
1720
And the JSON at "hash" should be a hash
21+
And the JSON at "hash" should be an object
1822
And the JSON at "integer" should be an integer
23+
And the JSON at "string" should be a string
24+
And the JSON at "true" should be a boolean

0 commit comments

Comments
 (0)