walks dom tree looking for root microformat classes

This commit is contained in:
Jessica Lynn Suttles 2013-02-04 14:55:06 -08:00
parent 07d510ab7d
commit e9ce55afea
2 changed files with 39 additions and 1 deletions

View file

@ -2,6 +2,12 @@ require "spec_helper"
require "microformats2"
describe Microformats2 do
describe "::parse" do
it "returns an array of found microformats" do
html = "spec/support/simple.html"
Microformats2.parse(html).should == ["YAY MICROFORMAT"]
end
end
describe "::read_html" do
before do
@html = <<-HTML.strip