Replace unbookmark ajax page with Kotlin version
[Sone.git] / src / test / kotlin / net / pterodactylus / sone / web / ajax / UnbookmarkAjaxPageTest.kt
index 703b9cd..23ebd9f 100644 (file)
@@ -29,9 +29,9 @@ class UnbookmarkAjaxPageTest : JsonPageTest("unbookmark.ajax", requiresLogin = f
        }
 
        @Test
-       fun `request with invalid post id does not unbookmark anything but succeeds`() {
+       fun `request with invalid post id does not unbookmark anything and fails`() {
                addRequestParameter("post", "invalid")
-               assertThat(json.isSuccess, equalTo(true))
+               assertThat(json.isSuccess, equalTo(false))
                verify(core, never()).unbookmarkPost(any())
        }