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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
|
Feature:
As the owner of a book collection
I want to be able to generate JSON containing titles from this collection
Scenario:
Given the following books by Simon Frank are in the collection:
| id | title |
| 1 | Der Gegenstand des Wissens |
| 2 | Lebendiges Wissen |
When I stringify it
Then I should get:
"""
[{
"id": 1,
"title": "Der Gegenstand des Wissens"
},{
"id": 2,
"title": "Lebendiges Wissen"
}]
"""
Given the following books by Søren Kierkegaard are in the collection:
| id | title |
| 1 | Die Krankheit zum Tode |
| 2 | Entweder-Oder |
When I stringify it
Then I should get:
"""
[{
"id": 1,
"title": "Die Krankheit zum Tode"
},{
"id": 2,
"title": "Entweder-Oder"
}]
"""
Given the following book is in the collection:
| id | 1 |
| title | Leonce und Lena |
| author | Georg Büchner |
When I stringify it
Then I should get:
"""
{
"id": 1,
"title": "Leonce und Lena",
"author": "Georg Büchner"
}
"""
Given the following books are in the collection:
| Friedrich Nietzsche | Die Geburt der Tragödie |
| Jacques Derrida | Die unbedingte Universität |
| Honoré de Balzac | Die Frau von 30 Jahren |
When I stringify it
Then I should get:
"""
[{
"author": "Friedrich Nietzsche",
"title": "Die Geburt der Tragödie"
},{
"author": "Jacques Derrida",
"title": "Die unbedingte Universität"
},{
"author": "Honoré de Balzac",
"title": "Die Frau von 30 Jahren"
}]
"""
|