             headers:
                 authorization: "1:A ring to rule them all"
 
-        stubIsSharingAuthenticated = {}
+        stubIsAuthenticated = {}
 
         before (done) ->
-            stubIsSharingAuthenticated = sinon.stub remoteAccess,
-                'isSharingAuthenticated', (header, callback) ->
+            stubIsAuthenticated = sinon.stub remoteAccess,
+                'isAuthenticated', (header, callback) ->
                     callback false
 
             done()
 
         after (done) ->
-            stubIsSharingAuthenticated.restore()
+            stubIsAuthenticated.restore()
             done()
 
 

            done()


        it 'When a successful authorized request is made then 200 is returned',
        (done) ->
            # since no error should be returned then there is no callback made
            sharing.revokeTarget req, res

        shareID     : 18


    describe.skip 'createSharing inner module', ->

        createSharing = sharing.__get__ "createSharing"

