Sha256: ce9a20fd331aa36b71cbb275a153ad88888739f5a4549946638456d4dfbb9eaf

Contents?: true

Size: 435 Bytes

Versions: 1

Compression:

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