Skip to content

Commit

Permalink
Fix unit test
Browse files Browse the repository at this point in the history
  • Loading branch information
Simon Dumas committed Sep 20, 2023
1 parent cc7fbd4 commit 3dc1c36
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,7 @@ class ResourcesRoutesSpec extends BaseRouteSpec with IOFromMap {
}

"fail to create a resource against a schema that does not exist" in {
Put("/v1/resources/myorg/myproject/pretendschema/", payloadWithoutId.toEntity) ~> routes ~> check {
Put("/v1/resources/myorg/myproject/pretendschema/someid", payloadWithoutId.toEntity) ~> routes ~> check {
status shouldEqual StatusCodes.NotFound
response.asJson shouldEqual jsonContentOf("/schemas/errors/invalid-schema-2.json")
}
Expand Down

0 comments on commit 3dc1c36

Please sign in to comment.