diff options
author | Rafael Mendonça França <rafaelmfranca@gmail.com> | 2012-08-05 21:21:14 -0300 |
---|---|---|
committer | Rafael Mendonça França <rafaelmfranca@gmail.com> | 2012-08-05 21:21:14 -0300 |
commit | 5edfc463484827df364a1e589677d5c84dfac282 (patch) | |
tree | 1ea518ee224e033d2a4e28d1819bb0de6544f6e6 /actionpack/test/template/url_helper_test.rb | |
parent | 39f4f289931ebe85b04624b4be8522d68e2c7620 (diff) | |
download | rails-5edfc463484827df364a1e589677d5c84dfac282.tar.gz rails-5edfc463484827df364a1e589677d5c84dfac282.tar.bz2 rails-5edfc463484827df364a1e589677d5c84dfac282.zip |
Don't use `html_escape` to test the escaping
Diffstat (limited to 'actionpack/test/template/url_helper_test.rb')
-rw-r--r-- | actionpack/test/template/url_helper_test.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/actionpack/test/template/url_helper_test.rb b/actionpack/test/template/url_helper_test.rb index 2c67b2210b..f9f8c36fff 100644 --- a/actionpack/test/template/url_helper_test.rb +++ b/actionpack/test/template/url_helper_test.rb @@ -244,7 +244,7 @@ class UrlHelperTest < ActiveSupport::TestCase def test_link_tag_with_custom_onclick link = link_to("Hello", "http://www.example.com", :onclick => "alert('yay!')") - expected = %{<a href="http://www.example.com" onclick="} + ERB::Util.html_escape("alert('yay!')") + %{">Hello</a>} + expected = %{<a href="http://www.example.com" onclick="alert('yay!')">Hello</a>} assert_dom_equal expected, link end |