Using mofo for automated testing

1 view
Skip to first unread message

George Brocklehurst

unread,
Jun 1, 2009, 3:24:13 PM6/1/09
to mofo
I put together a gem at the weekend that adds some new assertions to
Test::Unit to check for the presence and accuracy of microformats
using mofo.

It lets you do things like this:

assert_hcard some_html, :fn => 'George Brocklehurst'

Or in a Rails functional test it will automatically use the HTML from
the current view:

get :my_view
assert_hcalendar :dtstart => '2009-06-01'

There's more information on my blog and the code's all on GitHub:
http://blog.georgebrock.com/projects/testing-microformats-in-rails-applications-with-assert-microformats

Hope you find it useful.
Reply all
Reply to author
Forward
0 new messages