aboutsummaryrefslogtreecommitdiffstats
path: root/actionwebservice/test/dispatcher_action_controller_soap_test.rb
diff options
context:
space:
mode:
authorKent Sibilev <ksibilev@gmail.com>2006-09-01 02:18:52 +0000
committerKent Sibilev <ksibilev@gmail.com>2006-09-01 02:18:52 +0000
commitb5521a2651b5444f10c20803279af6d9570069b7 (patch)
treea85cc3af32c8b3e1e477a1ba8a63c3696b9e5b6d /actionwebservice/test/dispatcher_action_controller_soap_test.rb
parent7749c9c2200ad190e3f9935c27f09ec9b95227f2 (diff)
downloadrails-b5521a2651b5444f10c20803279af6d9570069b7.tar.gz
rails-b5521a2651b5444f10c20803279af6d9570069b7.tar.bz2
rails-b5521a2651b5444f10c20803279af6d9570069b7.zip
ActionWebService WSDL generation ignores HTTP_X_FORWARDED_HOST
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4891 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.rb6
1 files changed, 2 insertions, 4 deletions
diff --git a/actionwebservice/test/dispatcher_action_controller_soap_test.rb b/actionwebservice/test/dispatcher_action_controller_soap_test.rb
index 681c7c548b..0b58af3006 100644
--- a/actionwebservice/test/dispatcher_action_controller_soap_test.rb
+++ b/actionwebservice/test/dispatcher_action_controller_soap_test.rb
@@ -121,17 +121,15 @@ class TC_DispatcherActionControllerSoap < Test::Unit::TestCase
end
location = definitions.services[0].ports[0].soap_address.location
if controller.is_a?(DelegatedController)
- assert_match %r{http://localhost/dispatcher_test/delegated/test_service$}, location
+ assert_match %r{http://test.host/dispatcher_test/delegated/test_service$}, location
elsif controller.is_a?(DirectController)
- assert_match %r{http://localhost/dispatcher_test/direct/api$}, location
+ assert_match %r{http://test.host/dispatcher_test/direct/api$}, location
end
definitions.collect_complextypes
end
def ensure_valid_wsdl_action(controller)
test_request = ActionController::TestRequest.new({ 'action' => 'wsdl' })
- test_request.env['REQUEST_METHOD'] = 'GET'
- test_request.env['HTTP_HOST'] = 'localhost'
test_response = ActionController::TestResponse.new
wsdl = controller.process(test_request, test_response).body
ensure_valid_wsdl(controller, wsdl, DispatcherTest::WsdlNamespace)