Sha256: c050f2593f4579308ca0f762c0343e0df05c50cc485aa40ecf89f8bbab8aee49

Contents?: true

Size: 420 Bytes

Versions: 1

Compression:

Stored size: 420 Bytes

Contents

require "spec_helper"
require "pricecut"

describe Pricecut::Elements::H6 do
  let(:visitor) { Pricecut::MarkdownVisitor.new }

  let(:root) do
    parse %<<h6>Heading</h6>>
  end

  subject { described_class.new(visitor, root) }

  describe "#output!" do
    it "appends a Markdown header with newline to the output" do
      subject.output!

      visitor.output.should eq("###### Heading ######\n")
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
pricecut-0.0.3 spec/pricecut/elements/h6_spec.rb