diff --git a/spec/javascripts/app/views/comment_stream_view_spec.js b/spec/javascripts/app/views/comment_stream_view_spec.js
index 343a7d246..c0c979c8f 100644
--- a/spec/javascripts/app/views/comment_stream_view_spec.js
+++ b/spec/javascripts/app/views/comment_stream_view_spec.js
@@ -31,7 +31,16 @@ describe("app.views.CommentStream", function(){
describe("createComment", function(){
it("clears the new comment textarea", function(){
- $(this.view.el).html($("", {"class" : 'comment_box'}).val("hey"))
+ var comment = {
+ "id": 1234,
+ "text": "hey",
+ "author": "not_null"
+ };
+ spyOn($, "ajax").andCallFake(function(params) {
+ params.success(comment);
+ });
+
+ $(this.view.el).html($("", {"class" : 'comment_box'}).val(comment.text))
this.view.createComment()
expect(this.view.$(".comment_box").val()).toBe("")
})