   describe "DOM isn't ready", ->
 
     beforeEach ->
+      $.setReadyEvent('page:load')
       $.isReady = false
 
       $(callback1 = sinon.spy())


    describe '$.setReadyEvent', ->

      it 'should unbind default (page:load) event', ->
        $.setReadyEvent('random_event_name')


  describe "DOM is ready", ->

    beforeEach ->
      $.setReadyEvent('page:load')
      $.isReady = true

      $(callback1 = sinon.spy())
