Skip to content

Commit 404145e

Browse files
committed
it would help to actually add the test feature file
1 parent 1a85ddd commit 404145e

File tree

1 file changed

+22
-0
lines changed

1 file changed

+22
-0
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
Feature: tables
2+
3+
Scenario: a key-value table
4+
Given I have a kv table:
5+
| my-first-key | 1 |
6+
| another-key | "a string" |
7+
| yak | :a-kw |
8+
Then the clojure literal equivalent should be:
9+
"""
10+
{:my-first-key 1, :another-key "a string", :yak :a-kw}
11+
"""
12+
13+
Scenario: a table
14+
Given I have a table with its keys in a header row:
15+
| id | name | created-at |
16+
| 55 | "foo" | 1293884100000 |
17+
| 56 | "bar" | 1293884100000 |
18+
Then the clojure literal equivalent should be:
19+
"""
20+
[{:id 55, :name "foo", :created-at 1293884100000}
21+
{:id 56, :name "bar", :created-at 1293884100000}]
22+
"""

0 commit comments

Comments
 (0)