Sha256: c8584e3dc2621602301acceb9400edc567d2c07bd11d4a9121ef661220abd861

Contents?: true

Size: 433 Bytes

Versions: 1

Compression:

Stored size: 433 Bytes

Contents

require "spec_helper"
require "pricecut"

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

  let(:root) do
    parse %<<a href="http://example.com">Example</a>>
  end

  subject { described_class.new(visitor, root) }

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

      visitor.output.should eq("[Example](http://example.com)")
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

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