             runs -> updatedHandler.reset()
 
           it "does not fire a change event for paths that did not change", ->
-            noChangeSpy = jasmine.createSpy()
+            noChangeSpy = jasmine.createSpy "unchanged"
             atom.config.onDidChange('foo.bar', noChangeSpy)
 
             writeConfigFile "foo: { bar: ['baz', 'ok'], baz: 'another'}", 2

            expect(atom.config.get('foo.baz')).toBe 'bar'

        it "does not fire a change event for paths that did not change", ->
          atom.config.onDidChange 'foo.bar', noChangeSpy = jasmine.createSpy()

          writeConfigFile "foo: { bar: 'baz', baz: 'ok'}", 2
          waitsFor 'update event', -> updatedHandler.callCount > 0

      describe "when the config file changes to contain invalid cson", ->
        addErrorHandler = null
        beforeEach ->
          atom.notifications.onDidAddNotification addErrorHandler = jasmine.createSpy "error handler"
          writeConfigFile "}}}", 4
          waitsFor "error to be logged", -> addErrorHandler.callCount > 0

