From 3771b5d6c0b1c7008485db2ed6e8baf3b4a81a95 Mon Sep 17 00:00:00 2001 From: Stewart Stewart Date: Mon, 8 Jan 2018 13:41:33 -0800 Subject: Make test descriptions for service exceptions not lie --- src/test/scala/xyz/driver/core/rest/DriverRouteTest.scala | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/test/scala/xyz') 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 { -- cgit v1.2.3