Skip to content

Instantly share code, notes, and snippets.

@stevej
Created December 9, 2009 23:53
Show Gist options
  • Save stevej/252967 to your computer and use it in GitHub Desktop.
Save stevej/252967 to your computer and use it in GitHub Desktop.
object FooBar extends Specification {
"Foo" should {
var i = 0
doFirst { i = 1 }
doLast { i = 0 }
"this should not be 1" in {
i mustEqual 0
}
"this should be 0" in {
"seriously, it should be 0" in {
i mustEqual 0
}
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment