I''m using assert_select_rjs for testing my RJS code.
If my RJS code is:
page.replace_html "errors",
"<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"
end
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.
--
Posted via http://www.ruby-forum.com/.
--
You received this message because you are subscribed to the Google Groups
"Ruby on Rails: Talk" group.
To post to this group, send email to
rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk?hl=en.