Store preferences in template context instead of core
[Sone.git] / src / test / kotlin / net / pterodactylus / sone / web / SoneTemplatePageTest.kt
index b4a6a55..06d4c19 100644 (file)
@@ -24,7 +24,7 @@ import org.mockito.Mockito.verify
  */
 class SoneTemplatePageTest : WebPageTest() {
 
-       //      @get:JvmName("getPage1")
+       private val preferences by lazy { core.preferences!! }
        private val page = object : SoneTemplatePage("path.html", template, webInterface, true) {}
 
        @Test
@@ -107,8 +107,8 @@ class SoneTemplatePageTest : WebPageTest() {
        }
 
        @Test
-       fun `core is set in template context`() {
-               verifyVariableIsSet("core", core)
+       fun `preferences are set in template context`() {
+           verifyVariableIsSet("preferences", preferences)
        }
 
        @Test