       .fail (xhr, textStatus, error) ->
         throw error
 
+    it 'should be configurable via $.ajaxSetup', (done) ->
+
+      $.ajaxSetup
+        dataFilter: (data, dataType) ->
+          assert.equal dataType, 'json'
+          data.replace /a\stest/, 'reformatted'
+
+      settings =
+        dataType: 'json'
+
+      $.ajax('/test', settings).done (data, textStatus, xhr) ->
+        assert.equal data.test, 'This is reformatted'
+        done()
+      .fail (xhr, textStatus, error) ->
+        throw error
+
   describe 'dataType', ->
 
     it 'should process the response data according to the dataType (json)', (done) ->

      .fail (xhr, textStatus, error) ->
        throw error

  describe 'username and password', ->

    it 'should set fields on the HTTPClient', (done) ->

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


      $.ajax('/test').done -> done()

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

      $.ajaxSetup
        method: 'POST'

      $.ajax('/capture').done -> done()

  describe 'url', ->

    it 'should allow the url to be passed in as a setting', (done) ->
