Is there a way to use “have_tag” to match tags with HTML content? I want
this:
response.should have_tag(‘span#customer_address’, ‘123 Main
St.
Anytown, FL 32803’)
and that is what renders in the view, but it won’t match because
have_tag ignores the contained ‘
’. I know that have_tag is based on
HTMLSelector, so it’s not specifically RSpec, but does anyone know how
to work around this?
Thanks,
Steve