diff options
author | Jakub Jirutka <jakub@jirutka.cz> | 2018-02-18 03:10:27 +0100 |
---|---|---|
committer | Jakub Jirutka <jakub@jirutka.cz> | 2018-02-18 03:10:27 +0100 |
commit | a1fea74ed3d013128a95296086c73b3ab89a2304 (patch) | |
tree | f0b23dc45c4ee932315f0ec715ffbe41602b3948 /testing/ruby-escape_utils/fix-tests-for-ruby-2.5.patch | |
parent | 90f21dbf57b8ce1cd15c672ec114697d865853d0 (diff) | |
download | aports-a1fea74ed3d013128a95296086c73b3ab89a2304.tar.bz2 aports-a1fea74ed3d013128a95296086c73b3ab89a2304.tar.xz |
community/ruby-escape_utils: move from testing
Diffstat (limited to 'testing/ruby-escape_utils/fix-tests-for-ruby-2.5.patch')
-rw-r--r-- | testing/ruby-escape_utils/fix-tests-for-ruby-2.5.patch | 27 |
1 files changed, 0 insertions, 27 deletions
diff --git a/testing/ruby-escape_utils/fix-tests-for-ruby-2.5.patch b/testing/ruby-escape_utils/fix-tests-for-ruby-2.5.patch deleted file mode 100644 index 0579a99ab6..0000000000 --- a/testing/ruby-escape_utils/fix-tests-for-ruby-2.5.patch +++ /dev/null @@ -1,27 +0,0 @@ -CGI.escape does not escape "~" since Ruby 2.5. - ---- a/test/uri_component/escape_test.rb -+++ b/test/uri_component/escape_test.rb -@@ -10,8 +10,9 @@ - (0..127).each do |i| - c = i.chr - # Escaping URI path components should match CGI parameter escaping, except -- # spaces should be escaped as "%20" instead of "+" -- assert_equal CGI.escape(c).sub("+", "%20"), EscapeUtils.escape_uri_component(c) -+ # spaces should be escaped as "%20" instead of "+" and "~" should be -+ # escaped as "%7E". -+ assert_equal CGI.escape(c).sub("+", "%20").sub("~", "%7E"), EscapeUtils.escape_uri_component(c) - end - end - ---- a/test/url/escape_test.rb -+++ b/test/url/escape_test.rb -@@ -9,7 +9,7 @@ - def test_cgi_stdlib_compatibility - (0..127).each do |i| - c = i.chr -- assert_equal CGI.escape(c), EscapeUtils.escape_url(c) -+ assert_equal CGI.escape(c).sub("~", "%7E"), EscapeUtils.escape_url(c) - end - end - |