Defect #34143 » application_helper_test.rb.patch
| trunk/test/helpers/application_helper_test.rb (revision 20151) → trunk/test/helpers/application_helper_test.rb (working copy) | ||
|---|---|---|
| 114 | 114 |
to_test.each {|text, result| assert_equal "<p>#{result}</p>", textilizable(text)}
|
| 115 | 115 |
end |
| 116 | 116 | |
| 117 |
def test_auto_links_should_not_escape_query_string |
|
| 118 |
with_settings :text_formatting => '' do |
|
| 119 |
to_test = {
|
|
| 120 |
"http://foo.bar?param1=1¶m2=2" => |
|
| 121 |
%|<a class="external" href="http://foo.bar?param1=1&param2=2">http://foo.bar?param1=1&param2=2</a>| |
|
| 122 |
} |
|
| 123 |
to_test.each {|text, result| assert_equal "<p>#{result}</p>", textilizable(text)}
|
|
| 124 |
end |
|
| 125 |
end |
|
| 126 | ||
| 117 | 127 |
def test_auto_mailto |
| 118 | 128 |
to_test = {
|
| 119 | 129 |
'test@foo.bar' => '<a class="email" href="mailto:test@foo.bar">test@foo.bar</a>', |