1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

ERB::Util.url_encode no longer escapes ~ since ruby 2.5

see: https://bugs.ruby-lang.org/issues/6696
This commit is contained in:
Akira Matsuda 2017-05-19 20:19:46 +09:00
parent 45d7d80ea6
commit f8b5b4af84

View file

@ -615,8 +615,8 @@ class UrlHelperTest < ActiveSupport::TestCase
def test_mail_to_with_special_characters
assert_dom_equal(
%{<a href="mailto:%23%21%24%25%26%27%2A%2B-%2F%3D%3F%5E_%60%7B%7D%7C%7E@example.org">#!$%&amp;&#39;*+-/=?^_`{}|~@example.org</a>},
mail_to("#!$%&'*+-/=?^_`{}|~@example.org")
%{<a href="mailto:%23%21%24%25%26%27%2A%2B-%2F%3D%3F%5E_%60%7B%7D%7C@example.org">#!$%&amp;&#39;*+-/=?^_`{}|@example.org</a>},
mail_to("#!$%&'*+-/=?^_`{}|@example.org")
)
end