mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
remove some more absolute requires
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8567 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
This commit is contained in:
parent
1f2e9bb280
commit
f8c12301bb
1 changed files with 5 additions and 5 deletions
|
@ -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|
|
||||
|
|
Loading…
Reference in a new issue