 
       it 'is not defined on other operating systems', ->
         OperatingSystem.platform = -> 'win32'
-        delete require.cache[require.resolve('../lib/grammars.coffee')]
-        grammarMap = require '../lib/grammars.coffee'
+        @reloadGrammar()
 
         grammar = grammarMap['C']
         expect(grammar).toBe(undefined)


      it 'is not defined on other operating systems', ->
        OperatingSystem.platform = -> 'win32'
        delete require.cache[require.resolve('../lib/grammars.coffee')]
        grammarMap = require '../lib/grammars.coffee'

        grammar = grammarMap['Objective-C']
        expect(grammar).toBe(undefined)


      it 'is not defined on other operating systems', ->
        OperatingSystem.platform = -> 'win32'
        @reloadGrammar()

        grammar = grammarMap['Objective-C++']
        expect(grammar).toBe(undefined)
