Skip to content
Permalink
Browse files

Add regression test for #121.

  • Loading branch information...
davidfstr committed Feb 1, 2015
1 parent 5f20c89 commit 68a258548436926b8b29ef4e96d79215046d70b1
Showing with 9 additions and 0 deletions.
  1. +9 −0 test/rdiscount_test.rb
@@ -153,6 +153,15 @@ def test_that_footnotes_flag_works
rd = RDiscount.new(<<EOS, :footnotes)
Obtuse text.[^1]

[^1]: Clarification
EOS
assert rd.to_html.include?('<a href="#fn:1" rel="footnote">1</a>')
end

def test_that_footnotes_in_span_works
rd = RDiscount.new(<<EOS, :footnotes)
[Obtuse text.[^1]](class:someclass)

[^1]: Clarification
EOS
assert rd.to_html.include?('<a href="#fn:1" rel="footnote">1</a>')

0 comments on commit 68a2585

Please sign in to comment.
You can’t perform that action at this time.