public
Description: Ruby on Rails
Homepage: http://rubyonrails.org
Clone URL: git://github.com/rails/rails.git
Search Repo:
Fixed problems with running multiple functional tests in Rails under 1.8.2 
by including hack for test/unit weirdness

git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@319 
5ecf4fe2-1ee6-0310-87b1-e25e094e27de
dhh (author)
Sun Jan 02 11:34:49 -0800 2005
commit  dc792361202bd7a682da79375ce1236a7b3ec293
tree    f5853d4ca8259f7aef5c15c56ba896123b5f3578
parent  609ca177fa66ab0fbe19dd0cdcd7d8f1576cd9da
...
1
2
 
 
3
4
5
...
1
2
3
4
5
6
7
0
@@ -1,5 +1,7 @@
0
 *SVN*
0
 
0
+* Fixed problems with running multiple functional tests in Rails under 1.8.2 by including hack for test/unit weirdness
0
+
0
 * Added thread-safety to the DRbStore #66, #389 [Ben Stiglitz]
0
 
0
 * Added DateHelper#select_time and DateHelper#select_second #373 [Scott Baron]
...
1
2
3
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
4
5
6
...
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
0
@@ -1,6 +1,22 @@
0
 require File.dirname(__FILE__) + '/assertions/action_pack_assertions'
0
 require File.dirname(__FILE__) + '/assertions/active_record_assertions'
0
 
0
+if defined?(RAILS_ROOT)
0
+ # Temporary hack for getting functional tests in Rails running under 1.8.2
0
+ class Object #:nodoc:
0
+ alias_method :require_without_load_path_reloading, :require
0
+ def require(file_name)
0
+ begin
0
+ require_without_load_path_reloading(file_name)
0
+ rescue Object => e
0
+ ADDITIONAL_LOAD_PATHS.reverse.each { |dir| $:.unshift(dir) if File.directory?(dir) }
0
+ require_without_load_path_reloading(file_name)
0
+ end
0
+ end
0
+ end
0
+end
0
+
0
+
0
 module ActionController #:nodoc:
0
   class Base
0
     # Process a test request called with a +TestRequest+ object.

Comments

    No one has commented yet.