     # setup
     $btnClose = $('a.btn-close')
     $btnReopen = $('a.btn-reopen')
-    expect($btnReopen.hasClass('hidden')).toBe(true)
+    expect($btnReopen.toBeHidden())
     expect($btnClose.text()).toBe('Close')
     expect(typeof $btnClose.prop('disabled')).toBe('undefined')
 

    $btnClose.trigger('click')
    
    # verify
    expect($btnClose.hasClass('hidden')).toBe(true)
    expect($btnReopen.hasClass('hidden')).toBe(false)
    expect($btnClose.prop('disabled')).toBe(false)
    expect($('div.issue-box-open').hasClass('hidden')).toBe(true)
    expect($('div.issue-box-closed').hasClass('hidden')).toBe(false)

    # teardown
  it 'reopens an issue', ->

    # setup
    $btnClose = $('a.btn-close')
    $btnReopen = $('a.btn-reopen')
    expect($btnReopen.text()).toBe('Reopen')

    # excerize
    $btnReopen.trigger('click')

    # verify
    expect($btnReopen.toBeHidden())
    expect($btnClose.toBeVisible())
    expect($('div.issue-box-open').toBeVisible())
    expect($('div.issue-box-closed').toBeHidden())

    # teardown