Sha256: eb1f4a5e463438355a989c97b43dd41f94ce8bc04377c925f5628b765c03d0f0
Contents?: true
Size: 651 Bytes
Versions: 2
Compression:
Stored size: 651 Bytes
Contents
require 'minitest_helper' module RenderAsMarkdown class ListTest < MiniTest::Unit::TestCase def test_link_url_only l = RenderAsMarkdown::Link.new "https://google.com/" assert_equal "[https://google.com/](https://google.com/)", l.to_s end def test_link_text_url l = RenderAsMarkdown::Link.new "https://google.com/", "google it" assert_equal "[google it](https://google.com/)", l.to_s end def test_link_text_url_hint l = RenderAsMarkdown::Link.new "https://google.com/", "google it", "Google Search" assert_equal '[google it](https://google.com/ "Google Search")', 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/link_test.rb |
render-as-markdown-0.0.5 | test/link_test.rb |