       context 'when everything goes right,', ->
         beforeEach ->
           nock('https://api.pagerduty.com')
-          .get('/oncalls?time_zone=UTC&schedule_ids%5B%5D=42&earliest=true')
+          .get('/oncalls')
+          .query({
+            time_zone: 'UTC',
+            schedule_ids: [ 42 ],
+            earliest: true
+          })
           .reply(200, require('./fixtures/oncall_list-ok.json'))
           .post('/schedules/42/overrides')
           .reply(200, require('./fixtures/override_create-ok.json'))

      context 'when everything goes right,', ->
        beforeEach ->
          nock('https://api.pagerduty.com')
          .get('/oncalls?time_zone=UTC&schedule_ids%5B%5D=42&earliest=true')
          .reply(200, require('./fixtures/oncall_list-ok.json'))
          .post('/schedules/42/overrides')
          .reply(200, require('./fixtures/override_create-ok.json'))

          .filteringPath( (path) ->
            path.replace /(since|until)=[^&]*/g, '$1=x'
          )
          .get('/schedules/42/overrides')
          .query({
            since: 'x',
            until: 'x',
            editable: true,
            overflow: true
          })
          .reply(200, require('./fixtures/override_get-ok.json'))
          .delete('/schedules/42/overrides/PQ47DCP')
          .reply 503, { error: { code: 503, message: "it's all broken!" } }
