From b7f3751ce04e144f0794cc817ec13d850ceb6fd8 Mon Sep 17 00:00:00 2001 From: Leon Breedt Date: Wed, 13 Jul 2005 06:25:45 +0000 Subject: make sure that we get back a SOAPString when $KCODE is UTF-8 git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1823 5ecf4fe2-1ee6-0310-87b1-e25e094e27de --- actionwebservice/test/dispatcher_action_controller_soap_test.rb | 2 ++ 1 file changed, 2 insertions(+) (limited to 'actionwebservice/test') diff --git a/actionwebservice/test/dispatcher_action_controller_soap_test.rb b/actionwebservice/test/dispatcher_action_controller_soap_test.rb index 16a20ea73e..681c7c548b 100644 --- a/actionwebservice/test/dispatcher_action_controller_soap_test.rb +++ b/actionwebservice/test/dispatcher_action_controller_soap_test.rb @@ -71,6 +71,8 @@ class TC_DispatcherActionControllerSoap < Test::Unit::TestCase @direct_controller.web_service_exception_reporting = true $KCODE = 'u' assert_equal(Utf8String, do_method_call(@direct_controller, 'TestUtf8')) + retval = SOAP::Processor.unmarshal(@response_body).body.response + assert retval.is_a?(SOAP::SOAPString) # If $KCODE is not set to UTF-8, any strings with non-ASCII UTF-8 data # will be sent back as base64 by SOAP4R. By the time we get it here though, -- cgit v1.2.3