Folks:
I''ve had a really fun day: a root canal this morning, and documenting
the new assert_select method for functional and integration testing
this afternoon.
If you''d like to know how
assert_select "div#cart" do
assert_select "table" do
assert_select "tr", :count => 3
assert_select "tr.total-line td:last-of-type",
"$57.70"
end
end
validates that our page contains a <div id="cart"> with a three
row
table, where the last <td> in the <tr> with
class="total-line" has
the content $57.70, then download the latest beta and search for
assert_select in the Testing chapter.
Cheers
Dave
URLS:
refresh existing book: http://books.pragprog.com/titles/rails2/reorder
book information: http://pragmaticprogrammer.com/titles/rails
--~--~---------~--~----~------------~-------~--~----~
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-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
To unsubscribe from this group, send email to
rubyonrails-talk-unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org
For more options, visit this group at
http://groups.google.com/group/rubyonrails-talk
-~----------~----~----~----~------~----~------~--~---