         done()
 
     it 'processes data correctly', (done) ->
-      xhr = new Dropbox.Xhr 'POST',
-                            'https://api.dropbox.com/1/oauth/request_token',
+      xhr = new Dropbox.Xhr 'POST', @url
       xhr.addOauthParams @oauth
       xhr.prepare().send (error, data) ->
         expect(error).to.not.be.ok

      expect(@xhr.preflight).to.equal true

  describe '#send', ->
    it 'reports errors correctly', (done) ->
      @url = 'https://api.dropbox.com/1/oauth/request_token'
      @xhr = new Dropbox.Xhr 'POST', @url
      @xhr.prepare().send (error, data) =>
        expect(data).to.equal undefined

      xhr.prepare().send()

    it 'processes data and headers correctly', (done) ->
      xhr = new Dropbox.Xhr 'POST', @url
      xhr.addOauthParams @oauth
      xhr.reportResponseHeaders()
      xhr.prepare().send (error, data, metadata, headers) ->
