         $expandedLink = $area.affix('a[href="/expanded-path"][up-follow]')
         $input = $area.affix('input[type=text]')
         up.hello($area)
-        followSpy = up.link.knife.mock('defaultFollow').and.returnValue(Promise.resolve())
+        followSpy = up.link.knife.mock('follow').and.returnValue(Promise.resolve())
         Trigger.clickSequence($input)
         next =>
           expect(followSpy).not.toHaveBeenCalled()


      beforeEach ->
        @$link = $fixture('a[href="/follow-path"][up-follow]')
        @followSpy = up.link.knife.mock('defaultFollow').and.returnValue(Promise.resolve())
        @defaultSpy = spyOn(up.link, 'allowDefault').and.callFake((event) -> event.preventDefault())

      it "calls up.follow with the clicked link", asyncSpec (next) ->
        Trigger.click(@$link)
        next =>
          expect(@followSpy).toHaveBeenCalledWith(@$link[0], {})

      # IE does not call JavaScript and always performs the default action on right clicks
      unless AgentDetector.isIE() || AgentDetector.isEdge()

      it 'does not follow a form with up-target attribute (bugfix)', asyncSpec (next) ->
        $form = $fixture('form[up-target]')
        up.hello($form)
        followSpy = up.link.knife.mock('follow').and.returnValue(Promise.resolve())
        Trigger.clickSequence($form)

        next =>
