Skip to content

Instantly share code, notes, and snippets.

@kamekoopa
Created October 4, 2013 03:23
Show Gist options
  • Save kamekoopa/6820501 to your computer and use it in GitHub Desktop.
Save kamekoopa/6820501 to your computer and use it in GitHub Desktop.
specs2でBeforeClass、AfterClass的なことをやる
import org.specs2.mutable._
class HogeSpec extends Specification {
step {
println("start")
}
"hoge" should {
"huga" in { /*ry*/ }
"hugo" in { /*ry*/ }
}
"foo" should {
"bar" in { /*ry*/ }
"baz" in { /*ry*/ }
}
step {
println("end")
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment