Permalink
Browse files

tighten test_load_once_paths_should_behave_when_recursively_loading

git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5816 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
  • Loading branch information...
1 parent cbe0c3c commit 0a06ffc08e918383e4bc81eaa68b512d763e97be @jeremy jeremy committed Jan 1, 2007
Showing with 3 additions and 2 deletions.
  1. +3 −2 activesupport/test/dependencies_test.rb
@@ -725,9 +725,10 @@ def test_load_once_constants_should_not_be_unloaded
def test_load_once_paths_should_behave_when_recursively_loading
with_loading 'dependencies', 'autoloading_fixtures' do
Dependencies.load_once_paths = [Dependencies.load_paths.last]
- CrossSiteDepender.nil?
+ assert !defined?(CrossSiteDependency)
+ assert_nothing_raised { CrossSiteDepender.nil? }
assert defined?(CrossSiteDependency)
- assert ! Dependencies.autoloaded?(CrossSiteDependency),
+ assert !Dependencies.autoloaded?(CrossSiteDependency),
"CrossSiteDependency shouldn't be marked as autoloaded!"
Dependencies.clear
assert defined?(CrossSiteDependency),

0 comments on commit 0a06ffc

Please sign in to comment.