Sha256: 191d5650f62d4ddf5ceda3eaad42e89c5757b319e5dbd0d9ebecb72d0488c1d0

Contents?: true

Size: 405 Bytes

Versions: 1

Compression:

Stored size: 405 Bytes

Contents

require "spec_helper"
require "pricecut"

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

  let(:root) do
    parse %<<em>Emphasized.</em>>
  end

  subject { described_class.new(visitor, root) }

  describe "#output!" do
    it "appends a Markdown emphasis to the output" do
       subject.output!

       visitor.output.should eq("_Emphasized._")
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

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