diff options
author | Akira Matsuda <ronnie@dio.jp> | 2017-05-19 20:19:46 +0900 |
---|---|---|
committer | Akira Matsuda <ronnie@dio.jp> | 2017-05-19 20:30:08 +0900 |
commit | f8b5b4af843cb3107071c7d9fdc0d76bb43c47d6 (patch) | |
tree | 34cca46364b959c4401464835b039992bddb0b9c /actionview | |
parent | 45d7d80ea66654cc6cb44202eb2fecac04590691 (diff) | |
download | rails-f8b5b4af843cb3107071c7d9fdc0d76bb43c47d6.tar.gz rails-f8b5b4af843cb3107071c7d9fdc0d76bb43c47d6.tar.bz2 rails-f8b5b4af843cb3107071c7d9fdc0d76bb43c47d6.zip |
ERB::Util.url_encode no longer escapes ~ since ruby 2.5
see: https://bugs.ruby-lang.org/issues/6696
Diffstat (limited to 'actionview')
-rw-r--r-- | actionview/test/template/url_helper_test.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/actionview/test/template/url_helper_test.rb b/actionview/test/template/url_helper_test.rb index 6adfa95dd1..58d903b1c8 100644 --- a/actionview/test/template/url_helper_test.rb +++ b/actionview/test/template/url_helper_test.rb @@ -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 |