aboutsummaryrefslogtreecommitdiffstats
path: root/activesupport
diff options
context:
space:
mode:
authorJeremy Kemper <jeremy@bitsweat.net>2008-01-05 13:32:48 +0000
committerJeremy Kemper <jeremy@bitsweat.net>2008-01-05 13:32:48 +0000
commitf8c12301bb57d41f78d5a8e2764ac2f654657b40 (patch)
treebaf672befa54d57dc91493bac15cda64b0aaa2c1 /activesupport
parent1f2e9bb280a761132495ea430303767a08700fed (diff)
downloadrails-f8c12301bb57d41f78d5a8e2764ac2f654657b40.tar.gz
rails-f8c12301bb57d41f78d5a8e2764ac2f654657b40.tar.bz2
rails-f8c12301bb57d41f78d5a8e2764ac2f654657b40.zip
remove some more absolute requires
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8567 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Diffstat (limited to 'activesupport')
-rw-r--r--activesupport/test/dependencies_test.rb10
1 files changed, 5 insertions, 5 deletions
diff --git a/activesupport/test/dependencies_test.rb b/activesupport/test/dependencies_test.rb
index 67ff193f77..9e98e764fd 100644
--- a/activesupport/test/dependencies_test.rb
+++ b/activesupport/test/dependencies_test.rb
@@ -31,14 +31,14 @@ class DependenciesTest < Test::Unit::TestCase
end
def test_tracking_loaded_files
- require_dependency(File.dirname(__FILE__) + "/dependencies/service_one")
- require_dependency(File.dirname(__FILE__) + "/dependencies/service_two")
+ require_dependency 'dependencies/service_one'
+ require_dependency 'dependencies/service_two'
assert_equal 2, Dependencies.loaded.size
end
def test_tracking_identical_loaded_files
- require_dependency(File.dirname(__FILE__) + "/dependencies/service_one")
- require_dependency(File.dirname(__FILE__) + "/dependencies/service_one")
+ require_dependency 'dependencies/service_one'
+ require_dependency 'dependencies/service_one'
assert_equal 1, Dependencies.loaded.size
end
@@ -52,7 +52,7 @@ class DependenciesTest < Test::Unit::TestCase
def test_dependency_which_raises_exception_isnt_added_to_loaded_set
with_loading do
- filename = "#{File.dirname(__FILE__)}/dependencies/raises_exception"
+ filename = 'dependencies/raises_exception'
$raises_exception_load_count = 0
5.times do |count|