Fix locale loading in stream spec

This commit is contained in:
Sarah Mei 2011-05-28 21:22:35 -07:00
parent f732d20f0c
commit 6d6445b00a

View file

@ -46,12 +46,12 @@ describe("Stream", function() {
it("changes the text on the show comments link", function() {
link = $("a.show_post_comments");
Diaspora.widgets.i18n.loadLocale(
{'comments.hide': 'comments.hide pl'}, 'en');
{'comments' : {'hide': 'comments.hide pl'}}, 'en');
expect(link.text()).toEqual("show all comments");
Stream.toggleComments.call(
link, {preventDefault: function(){} }
);
jasmine.Clock.tick(200);
jasmine.Clock.tick(400);
expect(link.text()).toEqual("comments.hide pl");
});
});