 			m.chai.expect(promise).to.eventually.become(requested: 'https://changed.com')
 
 		it 'should be able to stop a request', ->
-			request.interceptors[0].request = ->
+			request.interceptors[0] = request: ->
 				throw new Error('blocked')
 
 			promise = request.send

			headers:
				'Content-Type': 'application/json'

		request.interceptors = [
			request: undefined
			requestError: undefined
			response: undefined
			responseError: undefined
		]

	afterEach ->
		fetchMock.restore()


	describe 'with a responseError hook', ->

		it 'should not call responseError if there are no errors', ->
			request.interceptors[0] = responseError: m.sinon.mock()

			promise = request.send
