Sha256: b3a000d600cebcb375be72083c1541c71be9174cddecf2cec9b76e6d07dfedb7

Contents?: true

Size: 416 Bytes

Versions: 1

Compression:

Stored size: 416 Bytes

Contents

require "spec_helper"
require "pricecut"

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

  let(:root) do
    parse %<<h3>Heading</h3>>
  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/h3_spec.rb