From 4c01a1e600059c730498de2f53dc93f4d13a71c0 Mon Sep 17 00:00:00 2001 From: Nathan Sobo Date: Mon, 18 Feb 2013 18:10:43 -0700 Subject: [PATCH] Fix spec to match improved CoffeeScript grammar --- spec/app/text-mate-grammar-spec.coffee | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spec/app/text-mate-grammar-spec.coffee b/spec/app/text-mate-grammar-spec.coffee index c1a2fbc62..91f220ecb 100644 --- a/spec/app/text-mate-grammar-spec.coffee +++ b/spec/app/text-mate-grammar-spec.coffee @@ -61,7 +61,7 @@ describe "TextMateGrammar", -> it "creates distinct tokens for nested captures and does not return tokens beyond the scope of the overall capture", -> {tokens} = grammar.tokenizeLine(" destroy: ->") expect(tokens.length).toBe 6 - expect(tokens[0]).toEqual(value: ' ', scopes: ["source.coffee", "meta.function.coffee"]) + expect(tokens[0]).toEqual(value: ' ', scopes: ["source.coffee"]) expect(tokens[1]).toEqual(value: 'destro', scopes: ["source.coffee", "meta.function.coffee", "entity.name.function.coffee"]) # this dangling 'y' with a duplicated scope looks wrong, but textmate yields the same behavior. probably a quirk in the coffee grammar. expect(tokens[2]).toEqual(value: 'y', scopes: ["source.coffee", "meta.function.coffee", "entity.name.function.coffee", "entity.name.function.coffee"])