You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
15 lines
381 B
15 lines
381 B
package outwatch
|
|
package router
|
|
|
|
import org.scalatest._
|
|
import org.scalatest.flatspec.AnyFlatSpec
|
|
|
|
class PathTestSpec extends AnyFlatSpec with Matchers {
|
|
class PathTest(url: String, path: Path){
|
|
path.toUrlString should equal (url)
|
|
}
|
|
|
|
"Root url" should "be /" in new PathTest("/", Root)
|
|
"A 1 part path" should "be correct" in new PathTest("/search", Root / "search")
|
|
}
|
|
|