Created
August 3, 2011 05:19
-
-
Save iwazer/1121960 to your computer and use it in GitHub Desktop.
Base of UnitFlatSpec ShouldMatchers BeforeAndAfterEach
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 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