DEV: Remove reference to /draft.json

DEV: Remove reference to /draft.json

diff --git a/test/javascripts/acceptance/encrypt-test.js b/test/javascripts/acceptance/encrypt-test.js
index 36bd32d..eabe512 100644
--- a/test/javascripts/acceptance/encrypt-test.js
+++ b/test/javascripts/acceptance/encrypt-test.js
@@ -266,7 +266,7 @@ acceptance("Encrypt", function (needs) {
 
     requests = [];
     await wait(
-      () => requests.includes("/draft.json") || requests.includes("/drafts.json"),
+      () => requests.includes("/drafts.json"),
       async () => {
         await fillIn("#reply-title", `Some hidden message ${PLAINTEXT}`);
         await fillIn(
@@ -286,7 +286,7 @@ acceptance("Encrypt", function (needs) {
   test("new draft for public topic is not encrypted", async (assert) => {
     await setEncryptionStatus(ENCRYPT_ACTIVE);
 
-    const requestHandler = (request) => {
+    server.post("/drafts.json", (request) => {
       const data = JSON.parse(parsePostData(request.requestBody).data);
       if (data.title) {
         assert.equal(data.title, `Some public message ${PLAINTEXT}`);
@@ -295,9 +295,7 @@ acceptance("Encrypt", function (needs) {
         assert.equal(data.reply, `Hello, world! ${PLAINTEXT}`.repeat(42));
       }
       return [200, { "Content-Type": "application/json" }, {}];
-    };
-    server.post("/draft.json", requestHandler);
-    server.post("/drafts.json", requestHandler);
+    });
 
     await visit("/");
     await click("#create-topic");
@@ -306,8 +304,7 @@ acceptance("Encrypt", function (needs) {
 
     requests = [];
     await wait(
-      () =>
-        requests.includes("/draft.json") || requests.includes("/drafts.json"),
+      () => requests.includes("/drafts.json"),
       () => click(".toggler")
     );
   });

GitHub sha: 6ca026f71288ec21a6a9533ce76f5423364ac8e2

This commit appears in #134 which was approved by eviltrout. It was merged by udan11.