Browse files

Work around strange Ruby 1.9 autoload issue by using absolute load pa…

…ths for tests
  • Loading branch information...
1 parent 6b0616d commit 9d3bd87045d49b5758d75cfee871bfd5289191de @jeremy jeremy committed May 24, 2010
Showing with 5 additions and 5 deletions.
  1. +5 −5 actionpack/test/abstract_unit.rb
View
10 actionpack/test/abstract_unit.rb
@@ -1,7 +1,7 @@
-$:.unshift(File.dirname(__FILE__) + '/../lib')
-$:.unshift(File.dirname(__FILE__) + '/../../activesupport/lib')
-$:.unshift(File.dirname(__FILE__) + '/fixtures/helpers')
-$:.unshift(File.dirname(__FILE__) + '/fixtures/alternate_helpers')
+$:.unshift File.expand_path('../../lib', __FILE__)
+$:.unshift File.expand_path('../../../activesupport/lib', __FILE__)
+$:.unshift File.expand_path('../fixtures/helpers', __FILE__)
+$:.unshift File.expand_path('../fixtures/alternate_helpers', __FILE__)
require 'rubygems'
require 'yaml'
@@ -58,4 +58,4 @@ def locked?
end
end
-ActionController::Reloader.default_lock = DummyMutex.new
+ActionController::Reloader.default_lock = DummyMutex.new

0 comments on commit 9d3bd87

Please sign in to comment.