diff options
author | Leon Breedt <bitserf@gmail.com> | 2005-04-05 21:37:48 +0000 |
---|---|---|
committer | Leon Breedt <bitserf@gmail.com> | 2005-04-05 21:37:48 +0000 |
commit | 1155ea0aa3c25b4683c6343162cd49dbe0fec094 (patch) | |
tree | 3f51d6a8bb7d64cc71c8546055ca03c906cd3d7a /actionwebservice/test/dispatcher_action_controller_soap_test.rb | |
parent | 81014da84c9ae4dacb70287ff6f509d7a40cc0ae (diff) | |
download | rails-1155ea0aa3c25b4683c6343162cd49dbe0fec094.tar.gz rails-1155ea0aa3c25b4683c6343162cd49dbe0fec094.tar.bz2 rails-1155ea0aa3c25b4683c6343162cd49dbe0fec094.zip |
initial go at making :layered dispatching generate WSDL for SOAP, and have
:layered process SOAP method calls correctly as well, may be unstable
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@1097 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Diffstat (limited to 'actionwebservice/test/dispatcher_action_controller_soap_test.rb')
-rw-r--r-- | actionwebservice/test/dispatcher_action_controller_soap_test.rb | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/actionwebservice/test/dispatcher_action_controller_soap_test.rb b/actionwebservice/test/dispatcher_action_controller_soap_test.rb index 3d7327be02..731185f398 100644 --- a/actionwebservice/test/dispatcher_action_controller_soap_test.rb +++ b/actionwebservice/test/dispatcher_action_controller_soap_test.rb @@ -26,6 +26,7 @@ class TC_DispatcherActionControllerSoap < Test::Unit::TestCase @direct_controller = DirectController.new @delegated_controller = DelegatedController.new @virtual_controller = VirtualController.new + @layered_controller = LayeredController.new @protocol = ActionWebService::Protocol::Soap::SoapProtocol.new end @@ -59,6 +60,13 @@ class TC_DispatcherActionControllerSoap < Test::Unit::TestCase assert(BrokenAutoLoadController.web_service_api.nil?) end + def test_layered_dispatching + mt_cats = do_method_call(@layered_controller, 'mt.getCategories') + assert_equal(["mtCat1", "mtCat2"], mt_cats) + blogger_cats = do_method_call(@layered_controller, 'blogger.getCategories') + assert_equal(["bloggerCat1", "bloggerCat2"], blogger_cats) + end + protected def exception_message(soap_fault_exception) soap_fault_exception.detail.cause.message |