diff options
author | Sam Umbach <sam@thinkrelevance.com> | 2011-12-03 13:10:58 -0500 |
---|---|---|
committer | Sam Umbach <sam@thinkrelevance.com> | 2011-12-03 13:11:02 -0500 |
commit | cfc467f73e801717325b4addef4fa05798462d5c (patch) | |
tree | a414bc31cff4d9804dedcfb6798393806b5fb768 /activesupport/test | |
parent | 2a9f0630822f60adfb418c34ec9cea30a2a716ed (diff) | |
download | rails-cfc467f73e801717325b4addef4fa05798462d5c.tar.gz rails-cfc467f73e801717325b4addef4fa05798462d5c.tar.bz2 rails-cfc467f73e801717325b4addef4fa05798462d5c.zip |
Simplify load and require tests
- These tests don't use autoloading so there's no need to add anything to autoload_paths
Diffstat (limited to 'activesupport/test')
-rw-r--r-- | activesupport/test/dependencies_test.rb | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/activesupport/test/dependencies_test.rb b/activesupport/test/dependencies_test.rb index 3a7922d219..7039f90499 100644 --- a/activesupport/test/dependencies_test.rb +++ b/activesupport/test/dependencies_test.rb @@ -264,7 +264,7 @@ class DependenciesTest < Test::Unit::TestCase original_features = $".dup $:.push(path) - with_loading('autoloading_fixtures/load_path') do + with_loading do assert_equal true, require('loaded_constant') end ensure @@ -279,7 +279,7 @@ class DependenciesTest < Test::Unit::TestCase 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 @@ -295,7 +295,7 @@ class DependenciesTest < Test::Unit::TestCase 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 @@ -319,7 +319,7 @@ class DependenciesTest < Test::Unit::TestCase 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 |