Sha256: ccad617582557de0ea5b34ff0f53667d726c20efa28bd7b66b11ce4c8a72fc89

Contents?: true

Size: 1.02 KB

Versions: 11

Compression:

Stored size: 1.02 KB

Contents

require "spec_helper"
require "microformats2"

describe Microformats2::ImpliedProperty::Name do
  describe "spec/support/lib/microformats/implied_property" do
    describe "name-pass.html" do
      html = "spec/support/lib/microformats2/implied_property/name-pass.html"
      collection = Microformats2.parse(html)
      it "should have 6 microformats" do
        collection.all.length.should == 6
      end
      collection.all.each_with_index do |format, index|
        it "implies name to be 'Jessica' in case #{index+1}" do
          format.name.to_s.should == "Jessica"
        end
      end
    end
    describe "name-fail.html" do
      html = "spec/support/lib/microformats2/implied_property/name-fail.html"
      collection = Microformats2.parse(html)
      it "should have 8 microformats" do
        collection.all.length.should == 8
      end
      collection.all.each_with_index do |format, index|
        it "implies name to be '' in case #{index+1}" do
          format.name.to_s.should == ""
        end
      end
    end
  end
end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
microformats2-2.9.0 spec/lib/microformats2/implied_property/name_spec.rb
microformats2-2.1.0 spec/lib/microformats2/implied_property/name_spec.rb
microformats2-2.0.3 spec/lib/microformats2/implied_property/name_spec.rb
microformats2-2.0.2 spec/lib/microformats2/implied_property/name_spec.rb
microformats2-2.0.1 spec/lib/microformats2/implied_property/name_spec.rb
microformats2-2.0.0 spec/lib/microformats2/implied_property/name_spec.rb
microformats2-2.0.0.pre5 spec/lib/microformats2/implied_property/name_spec.rb
microformats2-2.0.0.pre4 spec/lib/microformats2/implied_property/name_spec.rb
microformats2-2.0.0.pre3 spec/lib/microformats2/implied_property/name_spec.rb
microformats2-2.0.0.pre2 spec/lib/microformats2/implied_property/name_spec.rb
microformats2-2.0.0.pre1 spec/lib/microformats2/implied_property/name_spec.rb