       loadPageStub.restore()
 
     it 'updates window push state when response is a redirect', ->
-      replaceStateStub = stub(Turbolinks, "replaceState")
 
       mockXHR = {
         getResponseHeader: (header) ->


  beforeEach ->
    @visitStub = stub(Turbolinks, "visit")

  afterEach ->
    @visitStub.restore()

  it 'is defined', ->
    assert Page

        response: mockXHR,
        onlyKeys: ['a']

      @replaceStateStub.calledWith mockXHR.getResponseHeader('X-XHR-Redirected-To')
