 describe "bootbox.dialog", ->
   beforeEach ->
-    invoke = (s, method) => @dialog.find(s)[method]()
-
-    @text   = (s) -> invoke s, "text"
-    @html   = (s) -> invoke s, "html"
-    @exists = (s) -> @dialog.find(s).length isnt 0
+    @find   = (s)    -> @dialog.find s
+    @exists = (s)    -> @find(s).length isnt 0
+    @class  = (s, c) -> @find(s).hasClass(c)
+    @invoke = (s, m) -> @find(s)[m]()
+    @text   = (s)    -> @invoke s, "text"
+    @html   = (s)    -> @invoke s, "html"
 
   describe "invalid usage tests", ->
 


    it "has a backdrop", ->
      expect(@dialog.next(".modal-backdrop")).to.be.ok

    it "adds the fade class to the dialog", ->
      expect(@dialog.hasClass("fade")).to.be.true

    it "shows the expected message", ->
      expect(@text(".bootbox-body")).to.equal "test"

    it "does not have a header", ->
