 
       it "should tag the beginning of variable names", ->
         expect(tokens[2].value).toEqual "$"
-        expect(tokens[2]).toHaveScope "string.quoted.double.single-line.powershell"
-        expect(tokens[2]).toHaveScope "embedded.variable.other.powershell"
-        expect(tokens[2]).toHaveScope "embedded.punctuation.variable.begin.powershell"
+        expect(tokens[2]).toHaveScopes ["string.quoted.double.single-line.powershell", "embedded.variable.other.powershell", "embedded.punctuation.variable.begin.powershell"]
 
       it "should tag variable names", ->
         expect(tokens[3].value).toEqual "name"
-        expect(tokens[3]).toHaveScope "string.quoted.double.single-line.powershell"
-        expect(tokens[3]).toHaveScope "embedded.variable.other.powershell"
+        expect(tokens[3]).toHaveScopes ["string.quoted.double.single-line.powershell",  "embedded.variable.other.powershell"]
 
       it "should not tokenize as a variable when leading $ has been escaped", ->
         expect(tokens[4].value).toEqual " `$bob"
-        expect(tokens[4]).not.toHaveScope "embedded.punctuation.variable.begin.powershell"
-        expect(tokens[4]).not.toHaveScope "embedded.variable.other.powershell"
+        expect(tokens[4]).not.toHaveScopes ["embedded.punctuation.variable.begin.powershell", "embedded.variable.other.powershell"]
 
   describe "Keywords", ->
     describe "Block keywords", ->

      for variable in automaticVariables
        {tokens} = grammar.tokenizeLine variable
        expect(tokens[0].value).toEqual "$"
        expect(tokens[0]).toHaveScope "variable.language.powershell"
        expect(tokens[0]).toHaveScope "punctuation.variable.begin.powershell"
        expect(tokens[1].value).toEqual variable.substr(1)
        expect(tokens[1]).toHaveScope "variable.language.powershell"
        expect(tokens[1]).not.toHaveScope "punctuation.variable.begin.powershell"

        {tokens} = grammar.tokenizeLine type
        expectedType = type.substr(1, type.length - 2)
        expect(tokens[0].value).toEqual "["
        expect(tokens[0]).toHaveScopes ["storage.type.powershell", "punctuation.storage.type.begin.powershell"]
        expect(tokens[1].value).toEqual expectedType
        expect(tokens[1]).toHaveScope "storage.type.powershell"
        expect(tokens[2].value).toEqual "]"
