From db7a225df7f9c273959c1b32d0462b1f8cd18e75 Mon Sep 17 00:00:00 2001 From: Sam Date: Fri, 6 Mar 2015 14:36:00 +1100 Subject: [PATCH] correct specs --- test/javascripts/models/post-stream-test.js.es6 | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/test/javascripts/models/post-stream-test.js.es6 b/test/javascripts/models/post-stream-test.js.es6 index 7162b49c9..ad20b8702 100644 --- a/test/javascripts/models/post-stream-test.js.es6 +++ b/test/javascripts/models/post-stream-test.js.es6 @@ -320,7 +320,7 @@ test("staging and undoing a new post", function() { // Stage the new post in the stream var result = postStream.stagePost(stagedPost, user); - equal(result, true, "it returns true"); + equal(result, "staged", "it returns staged"); equal(topic.get('highest_post_number'), 2, "it updates the highest_post_number"); ok(postStream.get('loading'), "it is loading while the post is being staged"); @@ -355,13 +355,13 @@ test("staging and committing a post", function() { // Stage the new post in the stream var result = postStream.stagePost(stagedPost, user); - equal(result, true, "it returns true"); + equal(result, "staged", "it returns staged"); ok(postStream.get('loading'), "it is loading while the post is being staged"); stagedPost.setProperties({ id: 1234, raw: "different raw value" }); result = postStream.stagePost(stagedPost, user); - equal(result, false, "you can't stage a post while it is currently staging"); + equal(result, "alreadyStaging", "you can't stage a post while it is currently staging"); postStream.commitPost(stagedPost); ok(postStream.get('posts').contains(stagedPost), "the post is still in the stream");