 goog.provide 'athena.lib.specs.ModalView'
 goog.require 'athena.lib.ModalView'
 goog.require 'athena.lib.util.keys'
-
-# xdescribe and xit blocks pass when run in browser but cannot be handled
-# by phantomJS
+goog.require 'athena.lib.util.test'
+
 
 describe 'athena.lib.ModalView', ->
   ModalView = athena.lib.ModalView
   keys = athena.lib.util.keys
+
+  disable = true
+  message = 'Breaks on PhantomJS'
+  [cit, cdescribe] = athena.lib.util.test.conditionalDisablers disable, message
   
   # handles for before and after each blocks
   $div = undefined

        modalView.$el.trigger keyupEnter
        expectModalShownStatus modalView, false

      xit 'should hide modal when escape is pressed while modal is shown', ->
        modalView.show()

        keyupEscape = $.Event 'keyup'

        modalView = new ModalView disableTransitionOptions()
        $div.append modalView.render().el

      cit 'should call `_onShow` just before modal shows', ->
        spyOn(modalView, '_onShow').andCallFake runOnce ->
          expectModalShownStatus modalView, false

