Make README and code consistent about title

This commit is contained in:
Sebastien Deleuze
2018-05-14 18:01:02 +02:00
parent ba058b1a51
commit a18a580ae9
4 changed files with 8 additions and 3 deletions

View File

@@ -528,6 +528,8 @@ We update the "blog" Mustache templates.
----
{{> header}}
<h1>{{title}}</h1>
<div class="articles">
{{#articles}}
@@ -671,7 +673,8 @@ class IntegrationTests(@Autowired val restTemplate: TestRestTemplate) {
println(">> Assert article page title, content and status code")
val entity = restTemplate.getForEntity<String>("/article/2")
assertThat(entity.statusCode).isEqualTo(HttpStatus.OK)
assertThat(entity.body).contains("<a href=\"https://projectreactor.io/\">https://projectreactor.io/</a>")
assertThat(entity.body).contains("Reactor Aluminium has landed",,
"<a href=\"https://projectreactor.io/\">https://projectreactor.io/</a>")
}

View File

@@ -1,5 +1,7 @@
{{> header}}
<h1>{{title}}</h1>
<div class="articles">
{{#banner.title}}

View File

@@ -3,4 +3,3 @@
<title>{{title}}</title>
</head>
<body>
<h1>{{title}}</h1>

View File

@@ -35,7 +35,8 @@ class IntegrationTests(@Autowired val restTemplate: TestRestTemplate) {
println(">> Assert article page title, content and status code")
val entity = restTemplate.getForEntity<String>("/article/2")
assertThat(entity.statusCode).isEqualTo(HttpStatus.OK)
assertThat(entity.body).contains("<a href=\"https://projectreactor.io/\">https://projectreactor.io/</a>")
assertThat(entity.body).contains("Reactor Aluminium has landed",
"<a href=\"https://projectreactor.io/\">https://projectreactor.io/</a>")
}