walks dom tree looking for root microformat classes
This commit is contained in:
parent
07d510ab7d
commit
e9ce55afea
2 changed files with 39 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue