 path = require 'path'
 fs = require 'fs-plus'
 temp = require 'temp'
+GrammarRegistry = require '../src/grammar-registry'
 
 describe "the `grammars` global", ->
   beforeEach ->

      expect(grammars2.selectGrammar(filePath).name).toBe 'Ruby'

  describe ".selectGrammar(filePath)", ->
    it "can use the filePath to load the correct grammar based on the grammar's filetype", ->
      waitsForPromise ->
        atom.packages.activatePackage('language-git')

    waitsForPromise ->
      atom.packages.activatePackage('language-ruby')

    waitsForPromise ->
      atom.packages.activatePackage('language-git')

  afterEach ->
    atom.packages.deactivatePackages()
    atom.packages.unloadPackages()
