Fix IntegrationTests snippet

This commit is contained in:
Sebastien Deleuze
2018-05-14 17:34:19 +02:00
parent c405deb51d
commit ba058b1a51

View File

@@ -298,7 +298,7 @@ class IntegrationTests(@Autowired val restTemplate: TestRestTemplate) {
fun `Assert blog page title, content and status code`() {
val entity = restTemplate.getForEntity<String>("/")
assertThat(entity.statusCode).isEqualTo(HttpStatus.OK)
assertThat(entity.body).contains("<h1>Blog</h1>", "reactor")
assertThat(entity.body).contains("<h1>Blog</h1>")
}
}