aboutsummaryrefslogtreecommitdiff
path: root/src/test
diff options
context:
space:
mode:
authorStewart Stewart <stewart@driver.xyz>2018-01-08 13:41:33 -0800
committerStewart Stewart <stewart@driver.xyz>2018-01-08 13:41:33 -0800
commit3771b5d6c0b1c7008485db2ed6e8baf3b4a81a95 (patch)
treec075376ed97a3dcc08887f5538dc081030c9571f /src/test
parenta2adb740d8abec507846bffb52c764e9226a7817 (diff)
downloaddriver-core-3771b5d6c0b1c7008485db2ed6e8baf3b4a81a95.tar.gz
driver-core-3771b5d6c0b1c7008485db2ed6e8baf3b4a81a95.tar.bz2
driver-core-3771b5d6c0b1c7008485db2ed6e8baf3b4a81a95.zip
Make test descriptions for service exceptions not lie
Diffstat (limited to 'src/test')
-rw-r--r--src/test/scala/xyz/driver/core/rest/DriverRouteTest.scala4
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 {