-
Notifications
You must be signed in to change notification settings - Fork 17
/
types.feature
48 lines (45 loc) · 2.25 KB
/
types.feature
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
Feature: Dealing with sub objects
Background:
Given I am a client
Scenario: Handle null values
When I request to create a post with:
| attribute | type | value |
| title | string | foo |
| body | string | bar |
| extra | null | |
Then the request was successful
And the response has the following attributes:
| attribute | type | value |
| title | string | foo |
| body | string | bar |
| extra | nil | |
Scenario: Handle types
When I request to create a post with:
| attribute | type | value |
| title | string | foo |
| body | text | bar |
| int | int | 1 |
| long | long | 1347289473247823749 |
| float | float | 1.2 |
| double | double | 1.4 |
| number | number | 12 |
| numeric | numeric | 15 |
| bool | bool | true |
| boolean | boolean | false |
| null | null | |
| nil | nil | |
Then the request was successful
And the response has the following attributes:
| attribute | type | value |
| title | string | foo |
| body | text | bar |
| int | int | 1 |
| long | long | 1347289473247824000 |
| float | float | 1.2 |
| double | double | 1.4 |
| number | number | 12 |
| numeric | numeric | 15 |
| bool | bool | true |
| boolean | boolean | false |
| null | null | |
| nil | nil | |