 
         beforeEach (done) ->
             notifyTargetStub = sinon.stub Sharing, "notifySharer",
-                (route, data, callback) ->
+                (url, route, data, callback) ->
                     callback new Error "Sharing.notifySharer"
 
             done()


        # We stub the `notifyRecipient` module to avoid calling it (if so it would
        # try to request the url we declare in the share object).
        stubFn = (route, request, callback) ->
            spyRoute   = route
            spyRequest = request
            callback null # to mimick success

        missing/empty', (done) ->
            data = _.cloneDeep req.body
            data.preToken = null
            client.post 'services/sharing/answer/', data, (err, res, body) ->
                res.body.error.should.equal "Bad request: body is incomplete"
                res.statusCode.should.equal 400
