Skip to content
Browse files


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
jenkoian committed Jan 20, 2015
1 parent ba11606 commit f5a95111f479785454cf6cf5b765ca20cb61475b
Showing with 34 additions and 0 deletions.
  1. +3 −0 app/AppKernel.php
  2. +31 −0 features/navigating-house.feature
@@ -17,6 +17,9 @@ public function registerBundles()
new Doctrine\Bundle\DoctrineBundle\DoctrineBundle(),
new Sensio\Bundle\FrameworkExtraBundle\SensioFrameworkExtraBundle(),
new Tabbi89\CommanderBundle\Tabbi89CommanderBundle(),

// House Bundles
new Jenko\HouseBundle\JenkoHouseBundle(),

if (in_array($this->getEnvironment(), array('dev', 'test'))) {
@@ -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

0 comments on commit f5a9511

Please sign in to comment.
You can’t perform that action at this time.