Created
March 27, 2014 16:03
-
-
Save bvenners/9811002 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
feature("TV power button") { | |
scenario( | |
"User presses power button when TV is off" | |
Given "a TV set that is switched off" | |
When "the power button is pressed" | |
Then "the TV should switch on" | |
) { | |
// Given | |
val tv = new TVSet | |
assert(!tv.isOn) | |
// When | |
tv.pressPowerButton() | |
// Then | |
assert(tv.isOn) | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment