From a34816f0724b8fe281840e76d91ba3eee4843f25 Mon Sep 17 00:00:00 2001 From: Michael Mitchell + Chris Stringer Date: Fri, 22 Mar 2013 16:27:35 -0700 Subject: [PATCH] Jessica has strong feelings on whitespace --- lib/microformats2.rb | 3 +-- lib/microformats2/property.rb | 2 -- spec/lib/microformats2/collection_spec.rb | 5 ----- 3 files changed, 1 insertion(+), 9 deletions(-) diff --git a/lib/microformats2.rb b/lib/microformats2.rb index f1bca62..e5a9257 100644 --- a/lib/microformats2.rb +++ b/lib/microformats2.rb @@ -35,5 +35,4 @@ module Microformats2 end # class << self class InvalidPropertyPrefix < StandardError; end - -end +end \ No newline at end of file diff --git a/lib/microformats2/property.rb b/lib/microformats2/property.rb index 651f644..44eb9ab 100644 --- a/lib/microformats2/property.rb +++ b/lib/microformats2/property.rb @@ -8,7 +8,6 @@ module Microformats2 "e" => Embedded } class << self - def new(element, property_class, value=nil) # p-class-name -> p prefix = property_class.split("-").first @@ -18,6 +17,5 @@ module Microformats2 klass.new(element, property_class, value) end end - end end diff --git a/spec/lib/microformats2/collection_spec.rb b/spec/lib/microformats2/collection_spec.rb index 1f51131..aa75f3e 100644 --- a/spec/lib/microformats2/collection_spec.rb +++ b/spec/lib/microformats2/collection_spec.rb @@ -73,20 +73,16 @@ describe Microformats2::Collection do @collection.card.contents.first.should be_kind_of Microformats2::Property::Embedded end end - describe "Format.add_property" do let(:value) { "bar" } - it "creates the attr" do @collection.first.add_property("p-foo", value) @collection.first.foo.to_s.should == value end - it "allows json output of the attribute" do @collection.first.add_property("p-foo", value) @collection.first.to_json.should include(value) end - it "raises a InvalidPropertyPrefix error if the prefix is invalid" do expect { @collection.first.add_property("xxx-foo", value) @@ -94,7 +90,6 @@ describe Microformats2::Collection do end end end - describe "nested-property.html" do before do html = "spec/support/lib/microformats2/nested-property.html"