Sha256: b7bdbb525bd8472221fd17fcff36ce285e716b1ded690f8f17e31211514e38dd
Contents?: true
Size: 551 Bytes
Versions: 11
Compression:
Stored size: 551 Bytes
Contents
import java.util.Date import org.junit.runner._ import org.specs2.mutable._ import org.specs2.runner._ import picsolve.helloworld.Person import play.api.test._ @RunWith(classOf[JUnitRunner]) class PersonSpec extends Specification { "Person" should { "return their name correclty" in new WithApplication{ val name = "A Name" Person(name,new Date()).name === name } "return their birthDay correclty" in new WithApplication{ val birthDay = new Date() Person("A Name",birthDay).birthDay === birthDay } } }
Version data entries
11 entries across 11 versions & 1 rubygems