 
     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", ->
+  it "7. 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( $('#callbackNoResult').css('display') ).toEqual('block')
    expect( $('#callbackNoResult') ).toHaveText( "Le mot clé 'toto' ne donne aucun résultat dans la base OneCalendar" )

  it "12. should hide subscription div", ->
    setFixtures '<div id="subscription"></div>'

    SUGGEST.displayNoResult "toto"
    expect( $('#subscription').css('display') ).toEqual('none')

  it "13. should hide subscription & callbackNoResult div if user dont write anything when he click", ->
    setFixtures '''
                <form method="get" id="events" >
                  <input type="text" id="suggest" value="" />

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

  it "13. shoud format icalendar date format", ->
    expect( SUGGEST.formatIcalDate "2012-04-19T14:30:00.000+02:00" ).toEqual( "19/04/2012 à 14h30" )
    expect( SUGGEST.formatIcalDate "2012-04-19T14:00:00.000+02:00" ).toEqual( "19/04/2012 à 14h" )

  it "14. should display events number", ->
    setFixtures '<span id="eventNumber"></span>'

    SUGGEST.displayEventNumber({eventNumber:0})
