     registry.loadGrammarSync(path.join(__dirname, 'fixtures', name))
 
   beforeEach ->
-    registry = new Registry()
+    registry = new GrammarRegistry()
     loadGrammarSync('text.json')
     loadGrammarSync('javascript.json')
     loadGrammarSync('javascript-regex.json')


  describe "when the registry is empty", ->
    it "tokenizes using the null grammar", ->
      emptyRegistry = new Registry()
      grammar = emptyRegistry.selectGrammar('foo.js', '')
      {tokens} = grammar.tokenizeLine('a = 1;')
      expect(tokens.length).toBe 1

path = require 'path'
fs = require 'fs-plus'
GrammarRegistry = require '../lib/grammar-registry'

describe "Grammar tokenization", ->
  [grammar, registry] = []
