adding specs for rels/alternates
This commit is contained in:
parent
f2cc8b037a
commit
6b6524e4af
3 changed files with 39 additions and 0 deletions
|
@ -176,6 +176,20 @@ describe Microformats2::Collection do
|
|||
end
|
||||
end
|
||||
end
|
||||
|
||||
describe "rels.html" do
|
||||
before do
|
||||
html = "spec/support/lib/microformats2/rels.html"
|
||||
@collection = Microformats2.parse(html)
|
||||
end
|
||||
describe "#to_json" do
|
||||
it "should match rels.js" do
|
||||
json = "spec/support/lib/microformats2/rels.js"
|
||||
json = open(json).read
|
||||
JSON.parse(@collection.to_json).should == JSON.parse(json)
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue