diff --git a/spec/lib/microformats2/collection_spec.rb b/spec/lib/microformats2/collection_spec.rb index 44e5c49..8a3a30b 100644 --- a/spec/lib/microformats2/collection_spec.rb +++ b/spec/lib/microformats2/collection_spec.rb @@ -73,6 +73,11 @@ describe Microformats2::Collection do @collection.card.contents.first.should be_kind_of Microformats2::Property::Embedded end end + describe "h-card with a plurally-named nested tag" do + it "is properly parsed" do + expect(@collection.card.hours.to_s).to eql("") + end + end describe "Format.add_property" do let(:value) { "bar" } it "creates the attr" do diff --git a/spec/support/lib/microformats2/simple.html b/spec/support/lib/microformats2/simple.html index 551e9a2..8096b24 100644 --- a/spec/support/lib/microformats2/simple.html +++ b/spec/support/lib/microformats2/simple.html @@ -18,6 +18,7 @@

Vegan. Cat lover. Coder.

+