Sha256: c2d61a64379d6be0d650c3fc1ab6fef079b7c9eeb7a608af9b36d1dc2e1f2bc1
Contents?: true
Size: 412 Bytes
Versions: 1
Compression:
Stored size: 412 Bytes
Contents
require "spec_helper" require "pricecut" describe Pricecut::Elements::H2 do let(:visitor) { Pricecut::MarkdownVisitor.new } let(:root) do parse %<<h2>Heading</h2>> 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/h2_spec.rb |