Log In
Log In
Places
All Projects
Status Monitor
Collapse sidebar
obs:server:fedora:2.8
rubygem-escape_utils
rubygem-escape_utils-fix-tests.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File rubygem-escape_utils-fix-tests.patch of Package rubygem-escape_utils
--- a/test/uri_component/escape_test.rb +++ b/test/uri_component/escape_test.rb @@ -11,7 +11,11 @@ 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) + # Do not check for "~" because it can be escaped as "~" or "%7E" + # dependent on version of Ruby. + if c != '~' + assert_equal CGI.escape(c).sub("+", "%20"), EscapeUtils.escape_uri_component(c) + end end end --- a/test/url/escape_test.rb +++ b/test/url/escape_test.rb @@ -9,7 +9,11 @@ def test_cgi_stdlib_compatibility (0..127).each do |i| c = i.chr - assert_equal CGI.escape(c), EscapeUtils.escape_url(c) + # Do not check for "~" because it can be escaped as "~" or "%7E" + # dependent on version of Ruby. + if c != '~' + assert_equal CGI.escape(c), EscapeUtils.escape_url(c) + end end end
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Contact
Support
@OBShq
The Open Build Service is an
openSUSE project
.
Log In
Places
Places
All Projects
Status Monitor