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) | ||
|---|---|---|
|
to_test.each {|text, result| assert_equal "<p>#{result}</p>", textilizable(text)}
|
||
|
end
|
||
|
def test_auto_links_should_not_escape_query_string
|
||
|
with_settings :text_formatting => '' do
|
||
|
to_test = {
|
||
|
"http://foo.bar?param1=1¶m2=2" =>
|
||
|
%|<a class="external" href="http://foo.bar?param1=1&param2=2">http://foo.bar?param1=1&param2=2</a>|
|
||
|
}
|
||
|
to_test.each {|text, result| assert_equal "<p>#{result}</p>", textilizable(text)}
|
||
|
end
|
||
|
end
|
||
|
def test_auto_mailto
|
||
|
to_test = {
|
||
|
'test@foo.bar' => '<a class="email" href="mailto:test@foo.bar">test@foo.bar</a>',
|
||