Skip to content

Instantly share code, notes, and snippets.

@efleming969
Created January 17, 2010 17:31
Show Gist options
  • Save efleming969/279458 to your computer and use it in GitHub Desktop.
Save efleming969/279458 to your computer and use it in GitHub Desktop.
import org.scalatest.WordSpec
import org.scalatest.matchers.MustMatchers
import org.junit.runner.RunWith
import org.scalatest.junit.JUnitRunner
@RunWith(classOf[JUnitRunner])
class GreetingSpec extends WordSpec with MustMatchers {
"A Greeting" should {
"say hello" in {
val greeting = new Greeting
greeting.sayHello("foo") must be("hello, foo")
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment