Created
May 11, 2012 06:45
-
-
Save yamashiro/2657966 to your computer and use it in GitHub Desktop.
Test Specs2 Tag functionality
This file contains 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
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