Make sure there always was a call to Diaspora.I18n.loadLocale before running a jasmine spec

This commit is contained in:
Jonne Haß 2013-09-20 00:20:43 +02:00
parent ad20a8487b
commit 363103cdaf

View file

@ -24,6 +24,8 @@ beforeEach(function() {
var Page = Diaspora.Pages["TestPage"];
$.extend(Page.prototype, Diaspora.EventBroker.extend(Diaspora.BaseWidget));
Diaspora.I18n.loadLocale({}, 'en');
Diaspora.page = new Page();
Diaspora.page.publish("page/ready", [$(document.body)]);