require "spec_helper" require "pricecut" describe Pricecut::Elements::Blockquote do let(:visitor) { Pricecut::MarkdownVisitor.new } let(:root) do parse %<
Blockquote
> end subject { described_class.new(visitor, root) } describe "#output!" do it "appends a Markdown blockquote to the output" do subject.output! visitor.output.should eq("> Blockquote") end end end