From 87839c23ce70a1cc5bc8df19ca658c9de0992f11 Mon Sep 17 00:00:00 2001 From: Michael Mitchell Date: Mon, 25 Mar 2013 16:17:16 -0700 Subject: [PATCH] fixes specs calling now undefined methods --- Gemfile | 1 + spec/lib/microformats2/implied_property/photo_spec.rb | 2 +- spec/lib/microformats2/implied_property/url_spec.rb | 2 +- 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/Gemfile b/Gemfile index fa64b65..63be373 100644 --- a/Gemfile +++ b/Gemfile @@ -2,3 +2,4 @@ source 'https://rubygems.org' # Specify your gem's dependencies in microformats2.gemspec gemspec +gem 'pry' diff --git a/spec/lib/microformats2/implied_property/photo_spec.rb b/spec/lib/microformats2/implied_property/photo_spec.rb index 8fbf886..f8a05b5 100644 --- a/spec/lib/microformats2/implied_property/photo_spec.rb +++ b/spec/lib/microformats2/implied_property/photo_spec.rb @@ -23,7 +23,7 @@ describe Microformats2::ImpliedProperty::Photo do end collection.all.each_with_index do |format, index| it "implies photo to be '' in case #{index+1}" do - format.photo.to_s.should == "" + expect {format.photo}.to raise_error(NoMethodError) end end end diff --git a/spec/lib/microformats2/implied_property/url_spec.rb b/spec/lib/microformats2/implied_property/url_spec.rb index 4447195..3c736f0 100644 --- a/spec/lib/microformats2/implied_property/url_spec.rb +++ b/spec/lib/microformats2/implied_property/url_spec.rb @@ -23,7 +23,7 @@ describe Microformats2::ImpliedProperty::Url do end collection.all.each_with_index do |format, index| it "implies url to be '' in case #{index+1}" do - format.url.to_s.should == "" + expect {format.url.to_s.should == ""}.to raise_error(NoMethodError) end end end