 suite 'Common UI', () ->
 
     suiteSetup () ->
-        @server = sinon.fakeServer.create()
-        @server.respondImmediately = true
+        @sandbox = sinon.sandbox.create()
+        @sandbox.useFakeServer()
+        @sandbox.server.respondImmediately = true
         global.scriptRoot = ''
 
         fixtures = jQuery '#fixtures'

    test 'Should render a flash'

    test 'Should update item counts in the navbar', () ->
        @server.respondImmediately = true
        @server.respondWith [
            200
            {'Content-Type': 'application/json'}
            JSON.stringify {nav_counts: {pending: 2, payouts: 4, personal: 6}}

        assert.strictEqual (@navBarFixture.find '#badge-pending').text(), '2'
        assert.strictEqual (@navBarFixture.find '#badge-payouts').text(), '4'
        assert.strictEqual (@navBarFixture.find '#badge-personal').text(), '6'
        @sandbox.server.respondWith [
            200
            {'Content-Type': 'application/json'}
            JSON.stringify {nav_counts: {pending: 2, payouts: 0, personal: 6}}
