From afb0f03fd3dc5d60ff7bc7bea33fe0984475b11e Mon Sep 17 00:00:00 2001 From: Carsten Otto Date: Sun, 5 Mar 2017 15:18:46 +0100 Subject: [PATCH] add tests for open issues --- test/helpers/rendering_helper_test.rb | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/test/helpers/rendering_helper_test.rb b/test/helpers/rendering_helper_test.rb index 75912d88..5e558736 100644 --- a/test/helpers/rendering_helper_test.rb +++ b/test/helpers/rendering_helper_test.rb @@ -44,12 +44,26 @@ class RenderingHelperTest < ActionView::TestCase assert_equal(expected, actual) end + test "http link (with double hyphens)" do + # not implemented, see issue #2056 + # actual = render_text("http://foo.bar/foo--bar") + # expected = '

http://foo.bar/foo--bar

' + # assert_equal(expected, actual) + end + test "textile http link" do actual = render_text('A link to "GitHub":http://github.com/.') expected = '

A link to GitHub.

' assert_equal(expected, actual) end + test "textile http link (in new window)" do + # not implemented, see issue #2066 + # actual = render_text('A link to "GitHub":http://github.com/.') + # expected = '

A link to GitHub.

' + # assert_equal(expected, actual) + end + test "url with slash in query string" do # See http://blog.swivel.com/code/2009/06/rails-auto_link-and-certain-query-strings.html actual = render_text("foo http://example.com/foo?bar=/baz bar")