Skip to content

Instantly share code, notes, and snippets.

@yamashiro
Created May 11, 2012 06:45
Show Gist options
  • Save yamashiro/2657966 to your computer and use it in GitHub Desktop.
Save yamashiro/2657966 to your computer and use it in GitHub Desktop.
Test Specs2 Tag functionality
import org.specs2.mutable._
class SpecsStudyTest extends Specification with Tags {
"world" should {
"have 5 characters" in {
"world".size must_== 5
}
"is beutiful" in {
"world" must_== "beutiful"
}
} section("world")
"heaven" should {
"have 6 characters" in {
"heaven".size must_== 6
} tag("heaven")
"go to hell" in {
"heaven" must_!= "hell"
} tag ("hell")
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment