       context 'when something goes wrong,', ->
         beforeEach ->
           nock('https://api.pagerduty.com')
-          .get('/incidents?time_zone=UTC&include%5B%5D=first_trigger_log_entry&date_range=all&' +
-               'statuses%5B%5D=acknowledged&limit=100&total=true')
+          .get('/incidents')
+          .query({
+            time_zone: 'UTC',
+            include: [
+              'first_trigger_log_entry'
+            ],
+            date_range: 'all',
+            statuses: [
+              'acknowledged'
+            ],
+            limit: 100,
+            total: 'true'
+          })
           .reply 503, { error: { code: 503, message: "it's all broken!" } }
         afterEach ->
           room.robot.brain.data.pagerv2 = { }

      context 'when there are no incidents,', ->
        beforeEach ->
          nock('https://api.pagerduty.com')
          .get('/incidents?time_zone=UTC&include%5B%5D=first_trigger_log_entry&date_range=all&' +
               'statuses%5B%5D=acknowledged&limit=100&total=true')
          .reply(200, require('./fixtures/incident_list-empty.json'))
        afterEach ->
          nock.cleanAll()

        context 'with only one incident', ->
          beforeEach ->
            nock('https://api.pagerduty.com')
            .get('/incidents')
            .query({
              time_zone: 'UTC',
              include: [
                'first_trigger_log_entry'
              ],
              date_range: 'all',
              statuses: [
                'acknowledged'
              ],
              limit: 100,
              total: 'true'
            })
            .reply(200, require('./fixtures/incident_list-ok.json'))
            .put('/incidents')
            .reply(200, require('./fixtures/incident_manage-ok.json'))
