Merge pull request #19 from G5/rel-alternates-tests

Adds rel="alternates" clarity comment
This commit is contained in:
Jessica Lynn Suttles 2013-11-04 14:03:55 -08:00
commit e8ef4e9c62

View file

@ -184,6 +184,7 @@ describe Microformats2::Collection do
end
describe "#to_json" do
it "should match rels.js" do
# this also tests the case of having rel="alternates"
json = "spec/support/lib/microformats2/rels.js"
json = open(json).read
JSON.parse(@collection.to_json).should == JSON.parse(json)
@ -205,7 +206,6 @@ describe Microformats2::Collection do
# these cases were scraped from the internet using `rake specs:update`
#
describe "spec/support/cases" do
cases_dir = "spec/support/cases/*"