fixes specs calling now undefined methods
This commit is contained in:
parent
309c0dfcd0
commit
13a8521c21
3 changed files with 3 additions and 2 deletions
1
Gemfile
1
Gemfile
|
@ -2,3 +2,4 @@ source 'https://rubygems.org'
|
||||||
|
|
||||||
# Specify your gem's dependencies in microformats2.gemspec
|
# Specify your gem's dependencies in microformats2.gemspec
|
||||||
gemspec
|
gemspec
|
||||||
|
gem 'pry'
|
||||||
|
|
|
@ -23,7 +23,7 @@ describe Microformats2::ImpliedProperty::Photo do
|
||||||
end
|
end
|
||||||
collection.all.each_with_index do |format, index|
|
collection.all.each_with_index do |format, index|
|
||||||
it "implies photo to be '' in case #{index+1}" do
|
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
|
end
|
||||||
end
|
end
|
||||||
|
|
|
@ -23,7 +23,7 @@ describe Microformats2::ImpliedProperty::Url do
|
||||||
end
|
end
|
||||||
collection.all.each_with_index do |format, index|
|
collection.all.each_with_index do |format, index|
|
||||||
it "implies url to be '' in case #{index+1}" do
|
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
|
end
|
||||||
end
|
end
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue