Sha256: b827ddec63450b57cc34112456112d0045b0e7feec3bc3f2e691f0ab46850ce6

Contents?: true

Size: 924 Bytes

Versions: 5

Compression:

Stored size: 924 Bytes

Contents

require 'spec_helper'
require 'druid/elements'

describe Druid::Elements::Heading do
  describe "interface" do
    it "should register with tag :h1" do
      expect(Druid::Elements.element_class_for(:h1)).to be Druid::Elements::Heading
    end

    it "should register with tag :h2" do
      expect(Druid::Elements.element_class_for(:h2)).to be Druid::Elements::Heading
    end

    it "should register with tag :h3" do
      expect(Druid::Elements.element_class_for(:h3)).to be Druid::Elements::Heading
    end

    it "should register with tag :h4" do
      expect(Druid::Elements.element_class_for(:h4)).to be Druid::Elements::Heading
    end

    it "should register with tag :h5" do
      expect(Druid::Elements.element_class_for(:h5)).to be Druid::Elements::Heading
    end

    it "should register with tag :h6" do
      expect(Druid::Elements.element_class_for(:h6)).to be Druid::Elements::Heading
    end
  end
end

Version data entries

5 entries across 5 versions & 2 rubygems

Version Path
druid-s-1.0.0 spec/druid/elements/heading_spec.rb
druid-ts-1.2.6 spec/druid/elements/heading_spec.rb
druid-ts-1.2.5 spec/druid/elements/heading_spec.rb
druid-ts-1.2.4 spec/druid/elements/heading_spec.rb
druid-ts-1.2.3 spec/druid/elements/heading_spec.rb