         compiled = $compile(elem)(scope)
         scope.$digest()
 
-    it "should attach the auth token as a global variable", ->
-      expect(window.phrase_auth_token).toEqual("my-auth-token")
+    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()

        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()

    jQuery: {}
  }
  enabled = null
  projectId = "my-project-id"

  beforeEach ->
    module('phrase')
    module ($provide) ->
      window.jQuery.getScript = jasmine.createSpy("getScript")
      $provide.value('$window', window)
      $provide.value('phraseProjectId', projectId)
      $provide.value('phraseEnabled', enabled)
      null

