I'm using assert_select_rjs for testing my RJS code.
If my RJS code is:
"<span>" + @item.errors.full_messages.to_s + "</span>"
I know that I can test it like so:
assert_select_rjs :replace_html, "errors" do
assert_select "span", "Error happened"
The question I have, is there any way to verify the error text without
wrapping it in the <span> tag? It just would be much cleaner in my .rjs
file if I didn't have to do that.