Skip to content

Instantly share code, notes, and snippets.

@pragmaticpat-zz
Created September 24, 2011 13:59
Show Gist options
  • Save pragmaticpat-zz/1239356 to your computer and use it in GitHub Desktop.
Save pragmaticpat-zz/1239356 to your computer and use it in GitHub Desktop.
rental management
1 Feature: Manage rentals
2 In order to optimize my investments
3 As a rental baron
4 I want to be able to manage my rentals
5
6 Scenario Outline: Rental count
7 Given I have <number> rentals
8 When I go to the rentals page
9 Then I should see "<number> rentals found"
10
11 Scenarios:
12 |number|
13 |0|
14 |10|
15 |7|
16 |25|
17
18 Scenario: Rental details
19 Given I have 1 rentals with
20 | address1 | address2 | city | state| zip |
21 | 123 main st | apt 3 | clive | ia | 12345|
22 When I go to the rentals page
23 Then I should see "123 main st"
24 And I should see "apt 3"
25 And I should see "clive, ia 12345"
26
27 Scenario: Add new rental
28 Given I have 1 rentals with
29 | address1 | address2 | city | state | zip |
30 | 999 day dr | | metropolis | ky | 86753 |
31 And I am on the new rental page
32 When I fill in "rental_address1" with "address part 1"
33 And I fill in "rental_address2" with "apartment details"
34 And I fill in "rental_city" with "cityname"
35 And I fill in "rental_state" with "ST"
36 And I fill in "rental_zip" with "zipcode"
37 And I press "Add"
38 Then I should see "2 rentals found"
39 And I should see "999 day dr"
40 And I should see "metropolis"
41 And I should see "ky"
42 And I should see "86753"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment