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