From 302ee795b6476e09de9c171300cb3637ac4fece9 Mon Sep 17 00:00:00 2001 From: Senya Date: Sat, 28 Jan 2017 05:15:33 +0200 Subject: [PATCH] Fix a jasmine test issue The issue from a jasmine spec introduced by #7227 caused the testsuite that runs in a browser to be redirected out of the jasmine runner and therefore not finished. closes #7299 --- spec/javascripts/mobile/mobile_comments_spec.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spec/javascripts/mobile/mobile_comments_spec.js b/spec/javascripts/mobile/mobile_comments_spec.js index 602db13f6..7a751443f 100644 --- a/spec/javascripts/mobile/mobile_comments_spec.js +++ b/spec/javascripts/mobile/mobile_comments_spec.js @@ -7,7 +7,7 @@ describe("Diaspora.Mobile.Comments", function(){ describe("initialize", function() { it("calls submitComment when the comment form has been submitted", function() { - spyOn(Diaspora.Mobile.Comments, "submitComment"); + spyOn(Diaspora.Mobile.Comments, "submitComment").and.returnValue(false); Diaspora.Mobile.Comments.initialize(); Diaspora.Mobile.Comments.showCommentBox($(".stream .comment-action").first()); $(".stream .new_comment").first().submit();