Sha256: fb89af37de602fcda1571045f932c8732878e650d475b1d41d0167b78b2d866e
Contents?: true
Size: 588 Bytes
Versions: 1
Compression:
Stored size: 588 Bytes
Contents
require 'test/unit' require 'soap/processor' module SOAP class TestGenerator < Test::Unit::TestCase # based on #417, reported by Kou. def test_encode str = "\343\201\217<" g = SOAP::Generator.new g.generate(SOAPElement.new('foo')) assert_equal("<", g.encode_string(str)[-4, 4]) # unless str.respond_to?(:encode!) # Ruby 1.9 and above define encode!() begin kc_backup = $KCODE.dup $KCODE = 'EUC-JP' assert_equal("<", g.encode_string(str)[-4, 4]) ensure $KCODE = kc_backup end end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
rubyjedi-soap4r-1.5.8.01 | test/soap/test_generator.rb |