Do not redirect for comment link

This commit is contained in:
Rei
2014-02-02 19:11:24 +08:00
parent 2e7d0f7761
commit 853f25f361
4 changed files with 5 additions and 5 deletions

View File

@@ -9,7 +9,7 @@ class CommentsHelperTest < ActionView::TestCase
end
test "should link floor" do
assert_equal %Q|<p><a href="?comment_id=1">#1</a></p>|, link_comments('<p>#1</p>')
assert_equal %Q|<p><a href="?comment_id=1#comment-1">#1</a></p>|, link_comments('<p>#1</p>')
assert_equal %q|<a href="http://example.org/">#1</a>|, link_mentions(%q|<a href="http://example.org/">#1</a>|)
assert_equal %q|<pre>#1</pre>|, link_mentions(%q|<pre>#1</pre>|)
assert_equal %q|<code>#1</code>|, link_mentions(%q|<code>#1</code>|)