assert_dom_not_equal

assert_dom_not_equal(expected, actual, message = nil)
Instance Public methods

The negated form of assert_dom_equivalent.

1
2
# assert that the referenced method does not generate the specified HTML string
assert_dom_not_equal '<a href="http://www.example.com">Apples</a>', link_to("Oranges", "http://www.example.com")
doc_ruby_on_rails
2025-01-10 15:47:30
Comments
Leave a Comment

Please login to continue.