' +
'show comments (0)' +
'
' +
'' +
'/* Copyright (c) 2010, Diaspora Inc. This file is * licensed under the Affero General Public License version 3 or later. See * the COPYRIGHT file. */ describe("Stream", function() { describe("initialize", function() { it("attaches a click event to show_post_comments links", function() { spyOn($.fn, "delegate"); Stream.initialize(); expect($.fn.delegate).toHaveBeenCalledWith( "a.show_post_comments", "click", Stream.toggleComments); }); }); describe("toggleComments", function() { beforeEach(function() { jasmine.Clock.useMock(); $('#jasmine_content').html( '