From 38f598ec0b28919ff0d996bcb9ed923fbd99316f Mon Sep 17 00:00:00 2001 From: Nicholas Seckar Date: Wed, 16 Aug 2006 20:33:31 +0000 Subject: Update require_dependency to return true or false as require does. git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4778 5ecf4fe2-1ee6-0310-87b1-e25e094e27de --- activesupport/test/dependencies_test.rb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'activesupport/test') diff --git a/activesupport/test/dependencies_test.rb b/activesupport/test/dependencies_test.rb index 3d0ada47f1..f4b173101b 100644 --- a/activesupport/test/dependencies_test.rb +++ b/activesupport/test/dependencies_test.rb @@ -61,11 +61,11 @@ class DependenciesTest < Test::Unit::TestCase end def test_warnings_should_be_enabled_on_first_load - with_loading do + with_loading 'dependencies' do old_warnings, Dependencies.warnings_on_first_load = Dependencies.warnings_on_first_load, true - filename = "#{File.dirname(__FILE__)}/dependencies/check_warnings" - expanded = File.expand_path(filename) + filename = "check_warnings" + expanded = File.expand_path("test/dependencies/#{filename}") $check_warnings_load_count = 0 assert !Dependencies.loaded.include?(expanded) -- cgit v1.2.3