Ruby on Rails | Screencasts | Download | Documentation | Weblog | Community | Source

Changeset 4761

Show
Ignore:
Timestamp:
08/14/06 23:14:08 (2 years ago)
Author:
david
Message:

Fix AWS tests

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/actionwebservice/lib/action_web_service/dispatcher/action_controller_dispatcher.rb

    r4312 r4761  
    3838        private 
    3939          def dispatch_web_service_request 
     40            if request.get? 
     41              render_text('GET not supported', '500 GET not supported') 
     42              return 
     43            end 
    4044            exception = nil 
    4145            begin 
  • trunk/actionwebservice/test/abstract_client.rb

    r3903 r4761  
    7070 
    7171    def initialize 
    72       @session = @assigns = {} 
    7372      @value_void = nil 
    7473      @value_normal = nil 
  • trunk/actionwebservice/test/abstract_unit.rb

    r4309 r4761  
    1010require 'action_controller/test_process' 
    1111 
    12 ActionController::Base.logger = nil 
     12ActionController::Base.logger = Logger.new("debug.log") 
    1313ActionController::Base.ignore_missing_templates = true 
    1414 
     
    2121end 
    2222 
    23 ActiveRecord::Base.establish_connection( 
    24   :adapter  => "mysql", 
    25   :username => "rails", 
    26   :encoding => "utf8", 
    27   :database => "actionwebservice_unittest" 
    28 
    29 ActiveRecord::Base.connection 
     23ActiveRecord::Base.configurations = { 
     24  'mysql' => { 
     25    :adapter  => "mysql", 
     26    :username => "rails", 
     27    :encoding => "utf8", 
     28    :database => "actionwebservice_unittest" 
     29  } 
     30
     31 
     32ActiveRecord::Base.establish_connection 'mysql' 
    3033 
    3134Test::Unit::TestCase.fixture_path = "#{File.dirname(__FILE__)}/fixtures/"