Method: Test::Unit::Assertions::AssertRjs#assert_xhtml

Defined in:
lib/assert2/rjs.rb

#assert_xhtml(why, &block) ⇒ Object



51
52
53
54
55
56
57
# File 'lib/assert2/rjs.rb', line 51

def assert_xhtml(why, &block)
    #  scope.assert_xhtml @text, complain(why), &block      
  matcher = BeHtmlWith.new(self, &block)
  matcher.message = complain(why)
  matcher.matches?(@text, &block)
  @failure_message = matcher.failure_message
end