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:
parent
45d7d80ea6
commit
f8b5b4af84
1 changed files with 2 additions and 2 deletions
|
@ -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">#!$%&'*+-/=?^_`{}|~@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">#!$%&'*+-/=?^_`{}|@example.org</a>},
|
||||
mail_to("#!$%&'*+-/=?^_`{}|@example.org")
|
||||
)
|
||||
end
|
||||
|
||||
|
|
Loading…
Reference in a new issue