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

Changeset 362

Show
Ignore:
Timestamp:
01/10/05 00:40:27 (4 years ago)
Author:
david
Message:

Removed temporary hack for test/unit problems that only worked for functional tests

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/actionpack/lib/action_controller/test_process.rb

    r319 r362  
    11require File.dirname(__FILE__) + '/assertions/action_pack_assertions' 
    22require File.dirname(__FILE__) + '/assertions/active_record_assertions' 
    3  
    4 if defined?(RAILS_ROOT) 
    5   # Temporary hack for getting functional tests in Rails running under 1.8.2 
    6   class Object #:nodoc: 
    7     alias_method :require_without_load_path_reloading, :require 
    8     def require(file_name) 
    9       begin 
    10         require_without_load_path_reloading(file_name) 
    11       rescue Object => e 
    12         ADDITIONAL_LOAD_PATHS.reverse.each { |dir| $:.unshift(dir) if File.directory?(dir) } 
    13         require_without_load_path_reloading(file_name) 
    14       end 
    15     end 
    16   end 
    17 end 
    18  
    193 
    204module ActionController #:nodoc: