Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

georgebrock/assert-microformats

Repository files navigation

AssertMicroformats

A Rails plugin to test pages that contain microformats. Assert that certain microformats are present in the page, and that they have certain properties.

Setup

# In config/environments/test.rb
config.gem "georgebrock-assert-microformats", :source => "http://gems.github.com/", :lib => false

Example

# Ensure @response contains an hCard
assert_mf_hcard
# Ensure @response contains an hCard with fn set to 'George Brocklehurst'
assert_mf_hcard :fn => 'George Brocklehurst'
# Ensure the HTML in my_html contains an hCalendar event with summary set to 'My party'
assert_mf_hcalendar my_html, :summary => 'My party'

Copyright © 2009 George Brocklehurst , released under the MIT license

About

A gem to help you automatically test for correct microformat markup in Rails apps.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 3

Languages

AltStyle によって変換されたページ (->オリジナル) /