From fe6732bcdbd36edf99082bb283faefd16b77a1b2 Mon Sep 17 00:00:00 2001 From: Ben Ogle Date: Wed, 11 Sep 2013 11:37:10 -0700 Subject: [PATCH] Remove theme.deactivate calls in afterEach --- spec/theme-spec.coffee | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/spec/theme-spec.coffee b/spec/theme-spec.coffee index d77cf80c4..2d95c263a 100644 --- a/spec/theme-spec.coffee +++ b/spec/theme-spec.coffee @@ -10,7 +10,7 @@ describe "Theme", -> $("#jasmine-content").append $("
") afterEach -> - theme.deactivate() + theme.deactivate() if theme? describe "when the theme is a file", -> it "loads and applies css", -> @@ -57,9 +57,6 @@ describe "Theme", -> themePath = project.resolve('themes/theme-with-package-file') theme = new Theme(themePath) - afterEach -> - theme.deactivate() - it "reloads without readding to the stylesheets list", -> expect(theme.getStylesheetPaths().length).toBe 3 theme.loadStylesheet(theme.getStylesheetPaths()[0]) @@ -70,9 +67,6 @@ describe "Theme", -> themePath = project.resolve('themes/theme-with-package-file') theme = new Theme(themePath) - afterEach -> - theme.deactivate() - it "deactivated event fires on .deactivate()", -> theme.on 'deactivated', spy = jasmine.createSpy() theme.deactivate()