Leave help view spec with the default locale
This commit is contained in:
parent
1863137161
commit
3930069e67
1 changed files with 6 additions and 0 deletions
|
|
@ -2,11 +2,17 @@ describe("app.views.Help", function(){
|
||||||
beforeEach(function(){
|
beforeEach(function(){
|
||||||
gon.appConfig = {chat: {enabled: false}};
|
gon.appConfig = {chat: {enabled: false}};
|
||||||
this.locale = JSON.parse(spec.readFixture("locale_en_help_json"));
|
this.locale = JSON.parse(spec.readFixture("locale_en_help_json"));
|
||||||
|
Diaspora.I18n.reset();
|
||||||
Diaspora.I18n.load(this.locale, "en");
|
Diaspora.I18n.load(this.locale, "en");
|
||||||
this.view = new app.views.Help();
|
this.view = new app.views.Help();
|
||||||
Diaspora.Page = "HelpFaq";
|
Diaspora.Page = "HelpFaq";
|
||||||
});
|
});
|
||||||
|
|
||||||
|
afterEach(function() {
|
||||||
|
Diaspora.I18n.reset();
|
||||||
|
Diaspora.I18n.load(spec.defaultLocale);
|
||||||
|
});
|
||||||
|
|
||||||
describe("render", function(){
|
describe("render", function(){
|
||||||
beforeEach(function(){
|
beforeEach(function(){
|
||||||
this.view.render();
|
this.view.render();
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue