From f8c12301bb57d41f78d5a8e2764ac2f654657b40 Mon Sep 17 00:00:00 2001 From: Jeremy Kemper Date: Sat, 5 Jan 2008 13:32:48 +0000 Subject: [PATCH] remove some more absolute requires git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8567 5ecf4fe2-1ee6-0310-87b1-e25e094e27de --- activesupport/test/dependencies_test.rb | 10 +++++----- 1 file 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|