Sha256: 83b2c33c895ed29b077080bc69514ca7b9bbb1587cb989eee09a47884725eb39

Contents?: true

Size: 424 Bytes

Versions: 1

Compression:

Stored size: 424 Bytes

Contents

require "spec_helper"
require "pricecut"

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

  let(:root) do
    parse %<<img alt="Image" src="image.png" />>
  end

  subject { described_class.new(visitor, root) }

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

       visitor.output.should eq("![Image](image.png)")
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

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