Sha256: 9bc3f72c03dea1266aa87d0bb358428d5bc24a917df198f28cca651b6c8b980d

Contents?: true

Size: 596 Bytes

Versions: 2

Compression:

Stored size: 596 Bytes

Contents

require 'minitest_helper'

module RenderAsMarkdown
  class ImageTest < MiniTest::Unit::TestCase

    def test_image
      l = RenderAsMarkdown::Image.new "Alt Text", "http://whatismarkdown.com/workspace/img/logo.gif"
      assert_equal "![Alt Text](http://whatismarkdown.com/workspace/img/logo.gif)", l.to_s
    end

    def test_image_with_title
      l = RenderAsMarkdown::Image.new "Alt Text", "http://whatismarkdown.com/workspace/img/logo.gif", "Markdown Logo"
      assert_equal "![Alt Text](http://whatismarkdown.com/workspace/img/logo.gif \"Markdown Logo\")", l.to_s
    end

  end
end



Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
render-as-markdown-0.0.6 test/image_test.rb
render-as-markdown-0.0.5 test/image_test.rb