Skip to content
Permalink
Browse files

Version2

The change to the behat.yml file is me just trying to tidy up, you can
ignore that.

The changing of "outside the house" to "in the front garden" is just an
example of me consolidating the language for consistency. I don't think
this is always appropriate, the language is always primary. However, in
some cases I think it can actually help the language to be more
consistent on some things.

Finally, I've added a context file which implements
`SnippetAcceptingContext` which means it can be used to generate
some step definitions for me.

Once this is done, I run `bin/behat —append-snippets` to fill the
context file with some template step definitions.
  • Loading branch information
jenkoian committed Jan 20, 2015
1 parent f5a9511 commit f3fc5150db91a0ad1be9d56eb8b0af72a48f0026
Showing with 10 additions and 3 deletions.
  1. +0 −2 behat.yml.dist
  2. +1 −1 features/navigating-house.feature
  3. +9 −0 tests/contexts/HomeOwnerContext.php
@@ -9,7 +9,6 @@ default:
potential-buyer:
contexts:
- HomeOwnerContext
- PotentialBuyerContext
filters:
tags: "@potential-buyer"
# home-owner-ui:
@@ -18,4 +17,3 @@ default:
# potential-buyer-ui:
# contexts:
# - WebHomeOwnerContext
# - PotentialBuyerContext
@@ -2,7 +2,7 @@
Feature: Navigating the house

Scenario: Entering the house
Given I am outside of the house
Given I am in the "front garden"
When I enter through the front door
Then I should be in the "hallway"

@@ -0,0 +1,9 @@
<?php

use Behat\Behat\Context\Context;
use Behat\Behat\Context\SnippetAcceptingContext;

class HomeOwnerContext implements Context, SnippetAcceptingContext
{

}

0 comments on commit f3fc515

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