Sha256: 6e6f0cc88a68ffcb857388c28265ba84c2062f7836bf18571cb1a86fd4b513dd

Contents?: true

Size: 418 Bytes

Versions: 1

Compression:

Stored size: 418 Bytes

Contents

require "spec_helper"
require "pricecut"

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

  let(:root) do
    parse %<<h4>Heading</h4>>
  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.2 spec/pricecut/elements/h4_spec.rb