Skip to content

Instantly share code, notes, and snippets.

@DavertMik
Created February 16, 2012 11:18
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save DavertMik/1844158 to your computer and use it in GitHub Desktop.
Save DavertMik/1844158 to your computer and use it in GitHub Desktop.
Extending specifications
<?php
$I = new WebGuy();
$I->am('regular site user'); // As a regular user
$I->wantTo('create my blog page'); // I want to create my blog page
$I->lookForwardTo('get a cool blog here'); // So that I gain a cool blog
$I->createBlog('my first blog');
$I->see('My first blog', 'h1');
$I->seeInCurrentUrl('blog/my-first-blog');
$I->expect("blog can't be created twice");
$I->createBlog('my first blog');
$I->dontSee('My first blog', 'h1');
$I->see('Sorry, blog already exists');
$I->expect("blog has RSS feed");
// TODO: implement this
$I->expect("am administrator of this blog");
// TODO: implement this
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment