Sha256: 63ad19c49d63f1a49a50bee7f27ee710c2afac77af7f67426eb4a78df7c19e1b
Contents?: true
Size: 1.05 KB
Versions: 2
Compression:
Stored size: 1.05 KB
Contents
require "spec_helper" require "microformats2" describe Microformats2::ImpliedProperty::Url do describe "spec/support/lib/microformats/implied_property" do describe "url-pass.html" do html = "spec/support/lib/microformats2/implied_property/url-pass.html" collection = Microformats2.parse(html) it "should have 2 microformats" do collection.all.length.should == 2 end collection.all.each_with_index do |format, index| it "implies url to be 'http://github.com/jlsuttles' in case #{index+1}" do format.url.to_s.should == "http://github.com/jlsuttles" end end end describe "url-fail.html" do html = "spec/support/lib/microformats2/implied_property/url-fail.html" collection = Microformats2.parse(html) it "should have 2 microformats" do collection.all.length.should == 2 end collection.all.each_with_index do |format, index| it "implies url to be '' in case #{index+1}" do format.url.to_s.should == "" end end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
microformats2-2.0.0.pre2 | spec/lib/microformats2/implied_property/url_spec.rb |
microformats2-2.0.0.pre1 | spec/lib/microformats2/implied_property/url_spec.rb |