}
@Test
+ fun `page returns correct path`() {
+ assertThat(page.path, equalTo("options.html"))
+ }
+
+ @Test
+ fun `page does not require login`() {
+ assertThat(page.requiresLogin(), equalTo(false))
+ }
+
+ @Test
+ fun `page returns correct title`() {
+ addTranslation("Page.Options.Title", "options page title")
+ assertThat(page.getPageTitle(freenetRequest), equalTo("options page title"))
+ }
+
+ @Test
fun `get request stores all preferences in the template context`() {
verifyNoRedirect {
assertThat(templateContext["auto-follow"], equalTo<Any>(true))