Espionando as chamadas de rota do Backbone.js com o Jasmine

Ter problemas ao espiar chamadas de método em um Roteador de Backbone para garantir que ele chame o método correto em uma determinada rota.

trecho do teste

describe 'Router', ->
    beforeEach ->
        @router = new App.Router()
        Backbone.history.start()

    afterEach ->
        Backbone.history.stop()

    describe 'routes', ->
         it 'should be defined', ->
              expect(@router.routes).toBeDefined()

         describe 'default route', ->
             it 'should be defined', ->
                  expect(@router.routes['']).toBeDefined()

             it 'should call index', ->
                 spy = spyOn(@router, "index")
                 @router.navigate('', true)
                 expect(spy).toHaveBeenCalled()

O roteador

class App.Router extends Backbone.Router
    routes:
        '' : 'index'

    index: ->
        console.log "router.index has been called"

Tudo passa, exceto o último teste "deve chamar o índice". Ele falha com a mensagem "Esperado índice de espionagem para ter sido chamado". Eu tentei outras variantes

it "should call index", ->
    spyOn(@router, "index")
    @router.navigate('', true)
    expect(@router.index).toHaveBeenCalled()

Também posso ver a saída de log "router.index has been called" na saída de teste da função Router.index original

Obrigado!

EDIT: uma solução

describe '#1 Solution', ->
    it 'should call index', ->
        spyOn(App.Router.prototype, "index")
        @router = new App.Router()
        Backbone.history.start()
        @router.navigate('', true)
        expect(App.Router.prototype.index).toHaveBeenCalled()

questionAnswers(2)

yourAnswerToTheQuestion