diff options
author | Leon Breedt <bitserf@gmail.com> | 2005-03-28 03:20:13 +0000 |
---|---|---|
committer | Leon Breedt <bitserf@gmail.com> | 2005-03-28 03:20:13 +0000 |
commit | 594063f23cf8e7cecd24329e801992784f420b55 (patch) | |
tree | d52e9a6fc0521d51fcc3875162adf0411ee6caa0 /actionwebservice/test/client_soap_test.rb | |
parent | 439a216dcb65ac83d86ca04bb898e1797a87ce70 (diff) | |
download | rails-594063f23cf8e7cecd24329e801992784f420b55.tar.gz rails-594063f23cf8e7cecd24329e801992784f420b55.tar.bz2 rails-594063f23cf8e7cecd24329e801992784f420b55.zip |
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
Diffstat (limited to 'actionwebservice/test/client_soap_test.rb')
-rw-r--r-- | actionwebservice/test/client_soap_test.rb | 5 |
1 files changed, 5 insertions, 0 deletions
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 |