Module: Test::Unit::Assertions
- Defined in:
- lib/gems/xmpp4r-0.4/test/lib/assert_equal_xml.rb
Instance Method Summary collapse
-
#assert_equal_xml(expected, actual, message = nil) ⇒ Object
Like assert_equal, but actual comparision switches parameters to make use of our attribute order agnostic REXML#==.
Instance Method Details
#assert_equal_xml(expected, actual, message = nil) ⇒ Object
Like assert_equal, but actual comparision switches parameters to make use of our attribute order agnostic REXML#==
6 7 8 9 10 11 12 |
# File 'lib/gems/xmpp4r-0.4/test/lib/assert_equal_xml.rb', line 6 def assert_equal_xml(expected, actual, =nil) = (, <<EOT, expected, actual) <?> expected but was <?>. EOT assert_block() { actual == expected } end |