From 594063f23cf8e7cecd24329e801992784f420b55 Mon Sep 17 00:00:00 2001 From: Leon Breedt Date: Mon, 28 Mar 2005 03:20:13 +0000 Subject: generalize casting code to be used by both SOAP and XML-RPC (previously only XML-RPC). switch to better model for API methods, and improve the ability to generate protocol requests/response, will be required by upcoming scaffolding. git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1030 5ecf4fe2-1ee6-0310-87b1-e25e094e27de --- actionwebservice/test/client_soap_test.rb | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'actionwebservice/test/client_soap_test.rb') diff --git a/actionwebservice/test/client_soap_test.rb b/actionwebservice/test/client_soap_test.rb index 94a4f24c26..941a642554 100644 --- a/actionwebservice/test/client_soap_test.rb +++ b/actionwebservice/test/client_soap_test.rb @@ -66,6 +66,11 @@ class TC_ClientSoap < Test::Unit::TestCase assert(@container.value_normal.nil?) assert_equal(5, @client.normal(5, 6)) assert_equal([5, 6], @container.value_normal) + assert_equal(5, @client.normal("7", "8")) + assert_equal([7, 8], @container.value_normal) + assert_raises(TypeError) do + assert_equal(5, @client.normal(true, false)) + end end def test_array_return -- cgit v1.2.3