Skip to content

Instantly share code, notes, and snippets.

@tomtt
Created August 10, 2010 22:56
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save tomtt/518166 to your computer and use it in GitHub Desktop.
Save tomtt/518166 to your computer and use it in GitHub Desktop.
Feature: answer a question
In order to help another user
As a user
I want to answer a question
Scenario: I want to answer a question
Given a question exists with text: "What is your favourite colour?"
When I go to the home page
And I follow "questions"
And I follow "What is your favourite colour?"
When I follow "Answer"
And I fill in "Answer" with "Blue. No yel-- Auuuuuuuugh!"
And I press the "Share" link
When I go to the home page
And I follow "questions"
And I follow "What is your favourite colour?"
Then I should see "Blue. No yel-- Auuuuuuuugh!"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment