Skip to content

Instantly share code, notes, and snippets.

@iwazer
Created August 3, 2011 05:19
Show Gist options
  • Save iwazer/1121960 to your computer and use it in GitHub Desktop.
Save iwazer/1121960 to your computer and use it in GitHub Desktop.
Base of UnitFlatSpec ShouldMatchers BeforeAndAfterEach
import play._
import play.test._
import org.scalatest._
import org.scalatest.junit._
import org.scalatest.matchers._
class BasicTests extends UnitFlatSpec with ShouldMatchers with BeforeAndAfterEach {
override def beforeEach() {
Fixtures.deleteDatabase()
}
it should "run this dumb test" in {
(1 + 1) should be (2)
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment