Fix AWS tests

git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4761 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
上级 30fa7053
......@@ -37,6 +37,10 @@ def inherited_with_action_controller(child)
module InstanceMethods # :nodoc:
private
def dispatch_web_service_request
if request.get?
render_text('GET not supported', '500 GET not supported')
return
end
exception = nil
begin
ws_request = discover_web_service_request(request)
......
......@@ -69,7 +69,6 @@ class Container < ActionController::Base
attr_accessor :value_named_parameters
def initialize
@session = @assigns = {}
@value_void = nil
@value_normal = nil
@value_array_return = nil
......
......@@ -9,7 +9,7 @@
require 'action_controller'
require 'action_controller/test_process'
ActionController::Base.logger = nil
ActionController::Base.logger = Logger.new("debug.log")
ActionController::Base.ignore_missing_templates = true
begin
......@@ -20,13 +20,16 @@
fail "\nFailed to load activerecord: #{e}"
end
ActiveRecord::Base.establish_connection(
:adapter => "mysql",
:username => "rails",
:encoding => "utf8",
:database => "actionwebservice_unittest"
)
ActiveRecord::Base.connection
ActiveRecord::Base.configurations = {
'mysql' => {
:adapter => "mysql",
:username => "rails",
:encoding => "utf8",
:database => "actionwebservice_unittest"
}
}
ActiveRecord::Base.establish_connection 'mysql'
Test::Unit::TestCase.fixture_path = "#{File.dirname(__FILE__)}/fixtures/"
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册