Changeset 362
- Timestamp:
- 01/10/05 00:40:27 (4 years ago)
- Files:
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/actionpack/lib/action_controller/test_process.rb
r319 r362 1 1 require File.dirname(__FILE__) + '/assertions/action_pack_assertions' 2 2 require 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.26 class Object #:nodoc:7 alias_method :require_without_load_path_reloading, :require8 def require(file_name)9 begin10 require_without_load_path_reloading(file_name)11 rescue Object => e12 ADDITIONAL_LOAD_PATHS.reverse.each { |dir| $:.unshift(dir) if File.directory?(dir) }13 require_without_load_path_reloading(file_name)14 end15 end16 end17 end18 19 3 20 4 module ActionController #:nodoc: