blob: 995318c2d2f1008505a49359024a7b2a4fb4e97e (
plain)
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
|
A simple story test
===================
This is a very simple story test, which exists only to test
the story test runner itself.
STORY a simple story
The following is the actual test in this story:
GIVEN a clean slate
WHEN nothing happens
THEN everything is OK
AND not all is well
FINALLY cleanup
And the implementations follow.
IMPLEMENTS GIVEN a clean slate
echo a clean slate!
IMPLEMENTS WHEN nothing happens
true
IMPLEMENTS THEN everything is OK
echo OK!
IMPLEMENTS THEN not all is well
false
IMPLEMENTS FINALLY cleanup
echo cleaning up
|