Sha256: 941a3c5045851db840d7f8f4c15ec29d18687df27f46643a298f0eed9fc9ba1c

Contents?: true

Size: 412 Bytes

Versions: 1

Compression:

Stored size: 412 Bytes

Contents

require "spec_helper"
require "pricecut"

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

  let(:root) do
    parse %<<ol>Ordered List.</ol>>
  end

  subject { described_class.new(visitor, root) }

  describe "#output!" do
    it "appends a newline wrapped list to the output" do
      subject.output!

      visitor.output.should eq("\nOrdered List.\n")
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

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