-
Notifications
You must be signed in to change notification settings - Fork 49
/
Copy pathlist_restaurants.feature
39 lines (36 loc) · 1.27 KB
/
list_restaurants.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
Feature: List Restaurants
In order to keep myself up to date about restaurants registered in myrestaurants
As a user
I want to list the last 5 registered restaurants
Background: There are 6 registered restaurants by same user
Given Exists a user "user" with password "password"
And Exists restaurant registered by "user"
| name | date |
| The First | 1970-01-01 |
| The Second | 1970-01-02 |
| The Third | 1970-01-03 |
| The Fourth | 1970-01-04 |
| The Fifth | 1970-01-05 |
Scenario: List the last five
When I list restaurants
Then I'm viewing a list containing
| name |
| The Fifth |
| The Fourth |
| The Third |
| The Second |
| The First |
And The list contains 5 restaurants
Scenario: List the last five
Given Exists restaurant registered by "user"
| name | date |
| The Sixth | 1970-01-06 |
When I list restaurants
Then I'm viewing a list containing
| name |
| The Sixth |
| The Fifth |
| The Fourth |
| The Third |
| The Second |
And The list contains 5 restaurants