Skip to content

Instantly share code, notes, and snippets.

@philipjkim
Created July 9, 2012 14:17
Show Gist options
  • Save philipjkim/3076834 to your computer and use it in GitHub Desktop.
Save philipjkim/3076834 to your computer and use it in GitHub Desktop.
Specs2 sample which is runnable in Eclipse JUnit
import org.junit.runner.RunWith
import org.specs2.mutable.Specification
import org.specs2.runner.JUnitRunner
@RunWith(classOf[JUnitRunner])
class PlusSpec extends Specification {
"plus operator" should {
"return sum of two numbers" in {
5 must equalTo(2 + 3)
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment