Skip to content

georgebrock/assert-microformats

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

48 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

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

Languages