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

Version Path
picsolve_docker_builder-0.5.5 integration/lib_hello_world/test/PersonSpec.scala
picsolve_docker_builder-0.5.4 integration/lib_hello_world/test/PersonSpec.scala
picsolve_docker_builder-0.5.3 integration/lib_hello_world/test/PersonSpec.scala
picsolve_docker_builder-0.5.2 integration/lib_hello_world/test/PersonSpec.scala
picsolve_docker_builder-0.5.1 integration/lib_hello_world/test/PersonSpec.scala
picsolve_docker_builder-0.5.0 integration/lib_hello_world/test/PersonSpec.scala
picsolve_docker_builder-0.4.0 integration/lib_hello_world/test/PersonSpec.scala
picsolve_docker_builder-0.3.2 integration/lib_hello_world/test/PersonSpec.scala
picsolve_docker_builder-0.3.1 integration/lib_hello_world/test/PersonSpec.scala
picsolve_docker_builder-0.3.0 integration/lib_hello_world/test/PersonSpec.scala
picsolve_docker_builder-0.2.0 integration/lib_hello_world/test/PersonSpec.scala