diff options
author | David Heinemeier Hansson <david@loudthinking.com> | 2006-08-14 23:14:08 +0000 |
---|---|---|
committer | David Heinemeier Hansson <david@loudthinking.com> | 2006-08-14 23:14:08 +0000 |
commit | 461dce13ae6db3db60256248c1696a6d1660b0c1 (patch) | |
tree | 1966a3eeec6b44036d467777c50549e804f0b738 /actionwebservice/test | |
parent | 30fa7053be89de6a4615788862e052be925342c2 (diff) | |
download | rails-461dce13ae6db3db60256248c1696a6d1660b0c1.tar.gz rails-461dce13ae6db3db60256248c1696a6d1660b0c1.tar.bz2 rails-461dce13ae6db3db60256248c1696a6d1660b0c1.zip |
Fix AWS tests
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4761 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Diffstat (limited to 'actionwebservice/test')
-rw-r--r-- | actionwebservice/test/abstract_client.rb | 1 | ||||
-rw-r--r-- | actionwebservice/test/abstract_unit.rb | 19 |
2 files changed, 11 insertions, 9 deletions
diff --git a/actionwebservice/test/abstract_client.rb b/actionwebservice/test/abstract_client.rb index 5207d8ef21..467c4e0d5b 100644 --- a/actionwebservice/test/abstract_client.rb +++ b/actionwebservice/test/abstract_client.rb @@ -69,7 +69,6 @@ module ClientTest attr_accessor :value_named_parameters def initialize - @session = @assigns = {} @value_void = nil @value_normal = nil @value_array_return = nil diff --git a/actionwebservice/test/abstract_unit.rb b/actionwebservice/test/abstract_unit.rb index 392951ede7..3afd928561 100644 --- a/actionwebservice/test/abstract_unit.rb +++ b/actionwebservice/test/abstract_unit.rb @@ -9,7 +9,7 @@ require 'action_web_service' 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 @@ rescue Object => e 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/" |