|
|
|
@ -34,7 +34,8 @@ class ApplicationHelperTest < HelperTestCase |
|
|
|
|
'http://foo.bar/foo.bar#foo.bar.' => '<a class="external" href="http://foo.bar/foo.bar#foo.bar">http://foo.bar/foo.bar#foo.bar</a>.', |
|
|
|
|
'www.foo.bar' => '<a class="external" href="http://www.foo.bar">www.foo.bar</a>', |
|
|
|
|
'http://foo.bar/page?p=1&t=z&s=' => '<a class="external" href="http://foo.bar/page?p=1&t=z&s=">http://foo.bar/page?p=1&t=z&s=</a>', |
|
|
|
|
'http://foo.bar/page#125' => '<a class="external" href="http://foo.bar/page#125">http://foo.bar/page#125</a>' |
|
|
|
|
'http://foo.bar/page#125' => '<a class="external" href="http://foo.bar/page#125">http://foo.bar/page#125</a>', |
|
|
|
|
'http://foo@www.bar.com' => '<a class="external" href="http://foo@www.bar.com">http://foo@www.bar.com</a>', |
|
|
|
|
} |
|
|
|
|
to_test.each { |text, result| assert_equal "<p>#{result}</p>", textilizable(text) } |
|
|
|
|
end |
|
|
|
|