 	sendingUser.getCsrfToken (err) ->
 		return callback(err) if err
 		sendingUser.request.delete {
-			url: "/project/#{projectId}/invite/#{inviteId}",
+			uri: "/project/#{projectId}/invite/#{inviteId}",
 		}, (err, response, body) ->
 			return callback(err) if err
 			callback(null)

								expectInviteRedirectToProject @user, @link, @invite, cb
						], done

			describe 'user is not a member of the project', ->

				it 'should not grant access if the user does not accept the invite', (done) ->

	sendingUser.getCsrfToken (err) ->
		return callback(err) if err
		sendingUser.request.post {
			uri: "/project/#{projectId}/invite",
			json:
				email: email
				privileges: 'readAndWrite'
