diff options
Diffstat (limited to 'src/test/scala/xyz/driver/core/rest/DriverRouteTest.scala')
-rw-r--r-- | src/test/scala/xyz/driver/core/rest/DriverRouteTest.scala | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/test/scala/xyz/driver/core/rest/DriverRouteTest.scala b/src/test/scala/xyz/driver/core/rest/DriverRouteTest.scala index c239fb6..f402261 100644 --- a/src/test/scala/xyz/driver/core/rest/DriverRouteTest.scala +++ b/src/test/scala/xyz/driver/core/rest/DriverRouteTest.scala @@ -25,7 +25,7 @@ class DriverRouteTest extends AsyncFlatSpec with ScalatestRouteTest with Matcher } } - it should "respond with a 400 for an InvalidInputException" in { + it should "respond with a 401 for an InvalidInputException" in { val route = new TestRoute(akkaComplete(Future.failed[String](InvalidInputException()))) Post("/api/v1/foo/bar") ~> route.routeWithDefaults ~> check { @@ -35,7 +35,7 @@ class DriverRouteTest extends AsyncFlatSpec with ScalatestRouteTest with Matcher } } - it should "respond with a 400 for InvalidActionException" in { + it should "respond with a 403 for InvalidActionException" in { val route = new TestRoute(akkaComplete(Future.failed[String](InvalidActionException()))) Post("/api/v1/foo/bar") ~> route.routeWithDefaults ~> check { |