X-Git-Url: https://git.pterodactylus.net/?a=blobdiff_plain;f=src%2Ftest%2Fkotlin%2Fnet%2Fpterodactylus%2Fsone%2Fweb%2Fajax%2FUnbookmarkAjaxPageTest.kt;h=23ebd9f595e19d2d9dc00f40e3cc4b0c3cdea1c9;hb=90098a7e334d7af6a709bfac3e5ee8bf963c793a;hp=703b9cd917bc822b8275901b76b4c9734d1a7f23;hpb=21dedb25f4c512799fa35cb60581611bb2c92716;p=Sone.git diff --git a/src/test/kotlin/net/pterodactylus/sone/web/ajax/UnbookmarkAjaxPageTest.kt b/src/test/kotlin/net/pterodactylus/sone/web/ajax/UnbookmarkAjaxPageTest.kt index 703b9cd..23ebd9f 100644 --- a/src/test/kotlin/net/pterodactylus/sone/web/ajax/UnbookmarkAjaxPageTest.kt +++ b/src/test/kotlin/net/pterodactylus/sone/web/ajax/UnbookmarkAjaxPageTest.kt @@ -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()) }