Skip to content

Instantly share code, notes, and snippets.

@andrewdavey
Created May 10, 2011 17:55
Show Gist options
  • Save andrewdavey/964993 to your computer and use it in GitHub Desktop.
Save andrewdavey/964993 to your computer and use it in GitHub Desktop.
Witness coffeescript syntax idea
Given loadPage('/login'), [
Given userIsRemembered('johnsmith'), [
When [
'enter correct password': input(password: 'test')
click 'login'
]
Then [
dashboardScreenLoaded()
]
]
Given userIsNotRemembered(), [
When [
'enter credentials': input(username: 'johnsmith', password: 'test')
click 'login'
]
Then [
dashboardScreenLoaded()
]
]
]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment