aboutsummaryrefslogtreecommitdiffstats
path: root/actionview/test/template
diff options
context:
space:
mode:
authorAkira Matsuda <ronnie@dio.jp>2017-05-19 20:19:46 +0900
committerAkira Matsuda <ronnie@dio.jp>2017-05-19 20:30:08 +0900
commitf8b5b4af843cb3107071c7d9fdc0d76bb43c47d6 (patch)
tree34cca46364b959c4401464835b039992bddb0b9c /actionview/test/template
parent45d7d80ea66654cc6cb44202eb2fecac04590691 (diff)
downloadrails-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/test/template')
-rw-r--r--actionview/test/template/url_helper_test.rb4
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">#!$%&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