             done()
 
       $.ajax '/error', settings
+
+    it 'should be configurable via $.ajaxSetup', (done) ->
+
+      $.ajaxSetup
+        statusCode:
+          200: (data, textStatus, xhr) ->
+            assert.deepEqual data, { test: 'This is a test' }
+            done()
+
+      $.ajax '/test'
 
   describe 'success', ->
 


      assert.equal result.state(), 'resolved'

  describe 'beforeSend', ->

    beforeEach ->

          assert.equal textStatus, 'error'
          done()

    it 'should be configurable via $.ajaxSetup', (done) ->

      $.ajaxSetup
        complete: (xhr, textStatus) ->
          assert.equal textStatus, 'success'
          done()

      $.ajax '/test'

  describe 'contents', ->

    beforeEach ->

      Ti.Network.HTTPClient.mocks.push
        url: '/capture'
