Skip to content

Commit

Permalink
feat(server): minor test imrovements (#714)
Browse files Browse the repository at this point in the history
  • Loading branch information
maxim-tschumak committed Sep 10, 2018
1 parent d354c6a commit 053c3c6
Showing 1 changed file with 3 additions and 3 deletions.
Expand Up @@ -15,7 +15,7 @@ class NestedPathsMayBeRootPathsRuleTest {
val spec = """
openapi: 3.0.1
paths:
"/countries/{country-id}/cities/{city-id}": {}
"/countries/{country-id}/populated/cities/{city-id}": {}
""".trimIndent()
val context = getOpenApiContextFromContent(spec)

Expand All @@ -24,7 +24,7 @@ class NestedPathsMayBeRootPathsRuleTest {
assertThat(violations).isNotEmpty
assertThat(violations[0].description).contains("may be top-level resource")
assertThat(violations[0].pointer.toString())
.isEqualTo("/paths/~1countries~1{country-id}~1cities~1{city-id}")
.isEqualTo("/paths/~1countries~1{country-id}~1populated~1cities~1{city-id}")
}

@Test
Expand All @@ -33,7 +33,7 @@ class NestedPathsMayBeRootPathsRuleTest {
val spec = """
openapi: 3.0.1
paths:
pets/: {}
/pets/dogs: {}
""".trimIndent()
val context = getOpenApiContextFromContent(spec)

Expand Down

0 comments on commit 053c3c6

Please sign in to comment.