require "spec_helper" require "pricecut" describe Pricecut::Elements::Ol do let(:visitor) { Pricecut::MarkdownVisitor.new } let(:root) do parse %<
    Ordered List.
> end subject { described_class.new(visitor, root) } describe "#output!" do it "appends a newline wrapped list to the output" do subject.output! visitor.output.should eq("\nOrdered List.\n") end end end