     expect($.fn.superfish).toBeDefined()
 
   it "should be chainable", ->
-    expect($menu).toBe 'ul'
+    $menu.superfish 'destroy'
+    expect($menu.superfish()).toBe 'ul'
 
   it "should store options", ->
     expect($menu.data 'sf-options' ).toBeDefined()

  $menu = null

  beforeEach ->
    $menu = $('ul.sf-menu').superfish()

  afterEach ->
    $menu.superfish 'destroy'


    describe "'destroy' method", ->

      it "should handle multiple calls gracefully", ->
        $menu.superfish('destroy')
        expect( ->
          $menu.superfish('destroy')
        ).not.toThrow new Error("Uncaught TypeError: Cannot read property 'sfTimer' of null")
        expect($menu.superfish('destroy')).toBe 'ul'


    describe "'show' method", ->
      it "should fail silently if Superfish is uninitialised", ->
        $menu.superfish('destroy')
        expect( $liHasUl.superfish('show') ).toBe 'li'
      