Sha256: 7d5fa0434f12f2e47e9b97fe40145923df6ba9be64fe780cd59bacd7a7155f34

Contents?: true

Size: 407 Bytes

Versions: 1

Compression:

Stored size: 407 Bytes

Contents

require "spec_helper"
require "pricecut"

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

  let(:root) do
    parse %<<strong>Strong.</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

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
pricecut-0.0.3 spec/pricecut/elements/strong_spec.rb