     expect(SUGGEST.displayPreviewResult).toHaveBeenCalled()
     expect(SUGGEST.displaySubscription).toHaveBeenCalledWith('A')
 
-  it "9. should call displayNoResult method when callback is error", ->
+  it "8. should call displayNoResult method when callback is error", ->
     setFixtures '''
             <form method="get" id="events" >
               <input type="text" id="suggest" value="a" />


    expect( $('#subscription').css('display') ).toEqual('none')

  it "7. should add devoxx url in link for devoxx section", ->
    setFixtures '''
      <div id="devoxx">
        <a class="ical"></a>
        <a class="gcal"></a>
        <a class="webcal"></a>
      </div>
    '''

    SUGGEST.loadUrlDevoxxSection()

    expect( $("#devoxx a.gcal").attr("href") ).toContain('%2Fevents%2FAGILEFRANCE')
    expect( $("#devoxx a.webcal").attr("href") ).toContain('/events/AGILEFRANCE')

  it "8. should call rest controller to retrieve preview result when user click on search", ->
    setFixtures '''
            <form method="get" id="events" >
              <input type="text" id="suggest" value="a" />

    expect( $( previewElement[2] ).find(".title").text() ).toContain( "19/04/2012 à 15h35")
    expect( $( previewElement[2] ).find(".description").text() ).toContain( "location 3")

  it "10. should display fail", ->
    setFixtures '<div style="display:none;" id="callbackNoResult"></div>'

    SUGGEST.displayNoResult "toto"
