From ad9969e36c358c67ef7b45846b6b7b3b5b143bed Mon Sep 17 00:00:00 2001 From: Don Petersen Date: Thu, 3 Apr 2014 00:07:07 +0000 Subject: [PATCH] WIP - failing test without a solution. --- spec/lib/microformats2/collection_spec.rb | 5 +++++ spec/support/lib/microformats2/simple.html | 1 + 2 files changed, 6 insertions(+) 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.

+