Sha256: fbe1cc787ecb12b4cfd367161a632d505d737507e2f776538e7674f076a8682f

Contents?: true

Size: 409 Bytes

Versions: 1

Compression:

Stored size: 409 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.2 spec/pricecut/elements/strong_spec.rb