From c096e2e57c2182583009bb8c1a02c835ce4f86ea Mon Sep 17 00:00:00 2001 From: Seongjae Lee Date: Mon, 20 Apr 2015 23:25:25 -0700 Subject: [PATCH] Fix a test failure caused by non-existing default directory in test environment --- spec/notational-velocity-spec.coffee | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/spec/notational-velocity-spec.coffee b/spec/notational-velocity-spec.coffee index f76dbd7..21a5112 100644 --- a/spec/notational-velocity-spec.coffee +++ b/spec/notational-velocity-spec.coffee @@ -7,11 +7,16 @@ NotationalVelocity = require '../lib/notational-velocity' # or `fdescribe`). Remove the `f` to unfocus the block. describe "NotationalVelocity", -> + defaultDirectory = atom.config.get('notational-velocity.directory') activationPromise = null beforeEach -> atom.workspaceView = new WorkspaceView activationPromise = atom.packages.activatePackage('notational-velocity') + atom.config.set('notational-velocity.directory', 'testdata') + + afterEach -> + atom.config.set('notational-velocity.directory', defaultDirectory) describe "when the notational-velocity:toggle event is triggered", -> it "attaches and then detaches the view", ->