fixes whitespace issue. uses two spaces instead of tabs

This commit is contained in:
Jessica Lynn Suttles 2013-02-13 17:28:08 -08:00
parent b4084d5325
commit 1d8e46ce95
8 changed files with 181 additions and 141 deletions

View file

@ -101,4 +101,35 @@ describe Microformats2::Collection do
end
end
end
describe ".h-entry .p-author.h-card nested" do
before do
html = "spec/support/hcard-pname-pnickname-nested.html"
@collection = Microformats2.parse(html)
end
describe "#parse" do
it "assigns .h-card .p-name to HCard#name" do
@collection.first.name.first.value.should == "jlsuttles"
end
it "assigns .h-card .p-nickname to HCard#nickname" do
@collection.first.nickname.first.value.should == "jlsuttles"
end
end
describe "#to_hash" do
it "returns the correct Hash" do
hash = {
:items => [{
:type => ["h-card"],
:properties => {
:name => ["jlsuttles"],
:nickname => ["jlsuttles"]
}
}]
}
@collection.to_hash.should == hash
end
end
end
end