Skip to content

Instantly share code, notes, and snippets.

@fivetanley
Created August 27, 2012 17:06
Show Gist options
  • Save fivetanley/3490439 to your computer and use it in GitHub Desktop.
Save fivetanley/3490439 to your computer and use it in GitHub Desktop.
Cucumber Example
#Brittle Example
Feature: Automatically Update the Chat View
Users should not have to refresh their browser to see the latest messages.
Scenario: I send a message
Given I am on the chatsite
#Lower-level. Describes exact actions a user will execute in his/her browser.
When I fill out the message body with "Hi everyone"
And I click the "Send" button
Then I should see "<example_username>Hi everyone" in the ChatView
#Higher level example
Feature: Automatically Update the Chat View
Users should not have to refresh their browser to see the latest messages.
Scenario: I send a message
Given I am on the chatsite
When I send a Message #very high level, does not explain user's browser actions.
Then I should see my Message
@jbpros
Copy link

jbpros commented Aug 27, 2012

That's a lot of toos.

@fivetanley
Copy link
Author

Awesome, thanks so much!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment