From a070dd123c67ee05e5bc224dacb7c43a0aca1099 Mon Sep 17 00:00:00 2001 From: Sam Umbach Date: Sat, 3 Dec 2011 13:10:58 -0500 Subject: [PATCH] Simplify load and require tests - These tests don't use autoloading so there's no need to add anything to autoload_paths --- activesupport/test/dependencies_test.rb | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/activesupport/test/dependencies_test.rb b/activesupport/test/dependencies_test.rb index 77673da7bdc98..424b45813f88d 100644 --- a/activesupport/test/dependencies_test.rb +++ b/activesupport/test/dependencies_test.rb @@ -265,7 +265,7 @@ def test_require_returns_true_when_file_not_yet_required original_features = $".dup $:.push(path) - with_loading('autoloading_fixtures/load_path') do + with_loading do assert_equal true, require('loaded_constant') end ensure @@ -280,7 +280,7 @@ def test_require_returns_true_when_file_not_yet_required_even_when_no_new_consta original_features = $".dup $:.push(path) - with_loading('autoloading_fixtures/load_path') do + with_loading do Object.module_eval "module LoadedConstant; end" assert_equal true, require('loaded_constant') end @@ -296,7 +296,7 @@ def test_require_returns_false_when_file_already_required original_features = $".dup $:.push(path) - with_loading('autoloading_fixtures/load_path') do + with_loading do require 'loaded_constant' assert_equal false, require('loaded_constant') end @@ -320,7 +320,7 @@ def test_load_returns_true_when_file_found original_features = $".dup $:.push(path) - with_loading('autoloading_fixtures/load_path') do + with_loading do assert_equal true, load('loaded_constant.rb') assert_equal true, load('loaded_constant.rb') end