     jQuery: {}
   }
   enabled = null
-  authToken = "my-auth-token"
+  projectId = "my-project-id"
 
   beforeEach ->
     module('phrase')
     module ($provide) ->
       window.jQuery.getScript = jasmine.createSpy("getScript")
       $provide.value('$window', window)
-      $provide.value('phraseAuthToken', authToken)
+      $provide.value('phraseProjectId', projectId)
       $provide.value('phraseEnabled', enabled)
       null
 

        compiled = $compile(elem)(scope)
        scope.$digest()

    it "should not attach the auth token", ->
      expect(window.phrase_auth_token).toBeUndefined()

    it "should not fetch the javascript snippet", ->
      expect(window.jQuery.getScript).not.toHaveBeenCalled()

        compiled = $compile(elem)(scope)
        scope.$digest()

    it "should attach the project id as a global variable", ->
      expect(window.PHRASEAPP_CONFIG = {phrase_project_id}).toEqual("my-project-id")

    it "should fetch and evaluate the javascript snippet", ->
      expect(window.jQuery.getScript).toHaveBeenCalled()
