File: fix-failing-ruby2-tests

package info (click to toggle)
ruby-soap4r 2.0.5-6
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 5,016 kB
  • sloc: ruby: 52,729; xml: 266; sh: 42; javascript: 20; makefile: 11; perl: 10
file content (27 lines) | stat: -rw-r--r-- 772 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
Description: Fix failing ruby2.0 tests
 Fix tests:
   - change script encoding to 'US-ASCII'
   - lowercase 'http' protocol (ruby2 URI module default behaviour is to
       always lowercase it)

Bug-Debian: #730912
Author: David Suárez <david.sephirot@gmail.com>
Last-Update: 2014-01-04

--- ruby-soap4r-2.0.5.orig/test/xsd/test_xsd.rb
+++ ruby-soap4r-2.0.5/test/xsd/test_xsd.rb
@@ -1,3 +1,5 @@
+# encoding: US-ASCII
+
 require 'test/unit'
 require 'xsd/datatypes'
 
@@ -941,7 +943,7 @@ class TestXSD2 < Test::Unit::TestCase
       "http://foo/bar/baz",
       "http://foo/bar#baz",
       "http://foo/bar%20%20?a+b",
-      "HTTP://FOO/BAR%20%20?A+B",
+      "http://FOO/BAR%20%20?A+B",
     ]
     targets.each do |str|
       assert_parsed_result(XSD::XSDAnyURI, str)