           expect(project.deleteVariablesForPaths).toHaveBeenCalled()
 
         it 'scans again the file to find variables', ->
-          expect(project.variables.length).toEqual(TOTAL_VARIABLES_IN_PROJECT)
+          expect(project.getVariables().length).toEqual(TOTAL_VARIABLES_IN_PROJECT)
 
         it 'dispatches a did-reload-file-variables event', ->
           expect(eventSpy).toHaveBeenCalled()

            "#{rootPath}/styles/variables.styl"
          ]
          buffers: {}
          variables: project.variables.map (v) -> v.serialize()
        })

    describe '::getVariablesForPath', ->

          expect(project.deleteVariablesForPaths).toHaveBeenCalled()

        it 'scans again the file to find variables', ->
          expect(project.getVariables().length).toEqual(TOTAL_VARIABLES_IN_PROJECT)

        it 'dispatches a did-reload-file-variables event', ->
          expect(eventSpy).toHaveBeenCalled()
