Sha256: a4ae8b581ba2f69746bfe51fc52dad1a0f801b3ab274a51dc354363670844f47

Contents?: true

Size: 403 Bytes

Versions: 1

Compression:

Stored size: 403 Bytes

Contents

require "spec_helper"
require "pricecut"

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

  let(:root) do
    parse %<<p>Paragraph.</p>>
  end

  subject { described_class.new(visitor, root) }

  describe "#output!" do
    it "appends the text and a newline to the output" do
       subject.output!

       visitor.output.should eq("Paragraph.\n")
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
pricecut-0.0.2 spec/pricecut/elements/p_spec.rb