diff --git a/spec/javascripts/app/router_spec.js b/spec/javascripts/app/router_spec.js index 14e6dd2df..9e16fa9a7 100644 --- a/spec/javascripts/app/router_spec.js +++ b/spec/javascripts/app/router_spec.js @@ -1,6 +1,7 @@ describe('app.Router', function () { describe('followed_tags', function() { beforeEach(function() { + loginAs({name: 'alice'}); factory.preloads({tagFollowings: []}); spec.loadFixture("aspects_index"); }); @@ -74,6 +75,7 @@ describe('app.Router', function () { describe("aspects", function() { it("calls _initializeStreamView", function() { + new app.models.Stream(); spyOn(app.router, "_initializeStreamView"); app.router.aspects(); expect(app.router._initializeStreamView).toHaveBeenCalled(); @@ -123,6 +125,7 @@ describe('app.Router', function () { describe("stream", function() { it("calls _initializeStreamView", function() { + app.publisher = new app.views.Publisher({standalone: true}); spyOn(app.router, "_initializeStreamView"); app.router.stream(); expect(app.router._initializeStreamView).toHaveBeenCalled(); diff --git a/spec/javascripts/helpers/markdown_editor_spec.js b/spec/javascripts/helpers/markdown_editor_spec.js index 55bc68942..318d44a2c 100644 --- a/spec/javascripts/helpers/markdown_editor_spec.js +++ b/spec/javascripts/helpers/markdown_editor_spec.js @@ -1,5 +1,6 @@ describe("Diaspora.MarkdownEditor", function() { beforeEach(function() { + Diaspora.I18n.load(spec.defaultLocale, "en"); spec.content().html(""); this.$el = $("#fake-textarea"); });