                 visibilityChangeCount.should.equal 2
                 done()
               onFailure: (error) ->
-                done new Error "could not pop view: " + error.message
+                done new Error "could not hide modal: " + error.message
           , 500
         onFailure: (error) ->
-          done new Error "could not push view: " + error.message
+          done new Error "could not show modal: " + error.message
       }
 
 

                hiddenCount.should.equal 1
                done()
              onFailure: (error) ->
                done new Error "could not pop view: " + error.message
          , 500
        onFailure: (error) ->
          done new Error "could not push view: " + error.message
      }



                visibleCount.should.equal 1
                done()
              onFailure: (error) ->
                done new Error "could not hide modal: " + error.message
          , 500
        onFailure: (error) ->
          done new Error "could not show modal: " + error.message
      }

