aboutsummaryrefslogtreecommitdiff
path: root/src/test
diff options
context:
space:
mode:
authorStewart Stewart <stewinsalot@gmail.com>2018-01-08 17:14:10 -0800
committerGitHub <noreply@github.com>2018-01-08 17:14:10 -0800
commit16e99b65e18a7e9a0695c8400f3b59c9f0523de0 (patch)
treea971e4f5ffd794e59a826bfd0d3271fe0f996c54 /src/test
parent691a7991f3a7f3836084df3c0ec57a6ee4f76d8a (diff)
parent3771b5d6c0b1c7008485db2ed6e8baf3b4a81a95 (diff)
downloaddriver-core-16e99b65e18a7e9a0695c8400f3b59c9f0523de0.tar.gz
driver-core-16e99b65e18a7e9a0695c8400f3b59c9f0523de0.tar.bz2
driver-core-16e99b65e18a7e9a0695c8400f3b59c9f0523de0.zip
Merge pull request #100 from drivergroup/service-exception-test-names
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 {