From dd0e04e63836ed3b8dd2870200a6dd0a8fd0d9ed Mon Sep 17 00:00:00 2001 From: Zach Smith Date: Mon, 26 Feb 2018 10:25:56 -0800 Subject: Remove unused abstract config from DriverRoute --- src/test/scala/xyz/driver/core/rest/DriverRouteTest.scala | 10 ---------- 1 file changed, 10 deletions(-) (limited to 'src/test/scala/xyz/driver') diff --git a/src/test/scala/xyz/driver/core/rest/DriverRouteTest.scala b/src/test/scala/xyz/driver/core/rest/DriverRouteTest.scala index ce3daa8..15693a0 100644 --- a/src/test/scala/xyz/driver/core/rest/DriverRouteTest.scala +++ b/src/test/scala/xyz/driver/core/rest/DriverRouteTest.scala @@ -4,7 +4,6 @@ import akka.http.scaladsl.model.StatusCodes import akka.http.scaladsl.server.Directives.{complete => akkaComplete} import akka.http.scaladsl.server.{Directives, Route} import akka.http.scaladsl.testkit.ScalatestRouteTest -import com.typesafe.config.{Config, ConfigFactory} import com.typesafe.scalalogging.Logger import org.scalatest.{AsyncFlatSpec, Matchers} import xyz.driver.core.logging.NoLogger @@ -15,15 +14,6 @@ import scala.concurrent.Future class DriverRouteTest extends AsyncFlatSpec with ScalatestRouteTest with Matchers with Directives { class TestRoute(override val route: Route) extends DriverRoute { override def log: Logger = NoLogger - override def config: Config = - ConfigFactory.parseString(""" - |application { - | cors { - | allowedMethods: ["GET", "PUT", "POST", "PATCH", "DELETE", "OPTIONS"] - | allowedOrigins: [{scheme: https, hostSuffix: example.com}] - | } - |} - """.stripMargin) } "DriverRoute" should "respond with 200 OK for a basic route" in { -- cgit v1.2.3