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
This commit is contained in:
parent
c130b78117
commit
302ee795b6
1 changed files with 1 additions and 1 deletions
|
|
@ -7,7 +7,7 @@ describe("Diaspora.Mobile.Comments", function(){
|
||||||
|
|
||||||
describe("initialize", function() {
|
describe("initialize", function() {
|
||||||
it("calls submitComment when the comment form has been submitted", 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.initialize();
|
||||||
Diaspora.Mobile.Comments.showCommentBox($(".stream .comment-action").first());
|
Diaspora.Mobile.Comments.showCommentBox($(".stream .comment-action").first());
|
||||||
$(".stream .new_comment").first().submit();
|
$(".stream .new_comment").first().submit();
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue