           expect(CSON.readFileSync(atom.config.configFilePath)).toEqual {}
 
       describe "when the config file contains values that do not adhere to the schema", ->
-        warnSpy = null
-        beforeEach ->
-          warnSpy = spyOn console, 'warn'
+        beforeEach ->
           fs.writeFileSync atom.config.configFilePath, """
             foo:
               bar: 'baz'

  beforeEach ->
    spyOn(atom.config, "load")
    spyOn(atom.config, "save")
    dotAtomPath = temp.path('atom-spec-config')
    atom.config.configDirPath = dotAtomPath
    atom.config.enablePersistence = true

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

          expect(console.warn).toHaveBeenCalled()
          expect(console.warn.mostRecentCall.args[0]).toContain "foo.int"

      describe "when there is a pending save", ->
        it "does not change the config settings", ->
