From a7185a894f404fa847a8b47fad49a19dde97b69f Mon Sep 17 00:00:00 2001 From: Ben Ogle Date: Mon, 29 Sep 2014 15:13:20 -0700 Subject: [PATCH] Fix specs --- spec/config-spec.coffee | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/spec/config-spec.coffee b/spec/config-spec.coffee index 3d7d3de1e..80d613b7e 100644 --- a/spec/config-spec.coffee +++ b/spec/config-spec.coffee @@ -433,7 +433,7 @@ describe "Config", -> atom.config.loadUserConfig() atom.config.observeUserConfig() updatedHandler = jasmine.createSpy("updatedHandler") - atom.config.on 'updated', updatedHandler + atom.config.onDidChange updatedHandler afterEach -> atom.config.unobserveUserConfig() @@ -461,7 +461,7 @@ describe "Config", -> describe "when the config file subsequently changes again to contain valid cson", -> beforeEach -> - fs.writeFileSync(atom.config.configFilePath, "foo: bar: 'baz'") + fs.writeFileSync(atom.config.configFilePath, "foo: bar: 'newVal'") waitsFor 'update event', -> updatedHandler.callCount > 0 it "updates the config data and resumes saving", ->