-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Ignore the change to AppKernel which was again me thinking of the framework when I shouldn't have been. I've added my first feature file. It contains some examples of how the feature 'navigating the house' would work. Looking back, I'm now thinking this should be broken up. So, enter the house is a feature and the scenarios should contain examples of that. Overall though, you get the idea. This file is the kind of thing that would derive from the conversation with the client. No code, just language.
- Loading branch information
Showing
2 changed files
with
34 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
@home-owner @potential-buyer | ||
Feature: Navigating the house | ||
|
||
Scenario: Entering the house | ||
Given I am outside of the house | ||
When I enter through the front door | ||
Then I should be in the "hallway" | ||
|
||
Scenario: Getting room info | ||
Given I am in the "hallway" | ||
When I request room info | ||
Then I should have room size and adjacent rooms | ||
|
||
Scenario: Leaving the house | ||
Given I am in the "hallway" | ||
When I leave through the front door | ||
Then I should be in the "front garden" | ||
|
||
Scenario: Entering a room that doesn't exist | ||
Given I am in the "hallway" | ||
Then I should not be able to enter the "made up" room | ||
|
||
Scenario: Enter a room that does exist | ||
Given there are the following locations in the house | ||
| name | type | width | height | | ||
| front garden | garden | 300 | 300 | | ||
| hallway | room | 300 | 300 | | ||
| living room | room | 300 | 300 | | ||
| kitchen | room | 300 | 300 | | ||
And I am in the "hallway" | ||
Then I should be able to enter the "living room" room |