Permalink
Browse files

Make dependencies_test pass running standalone [#4215 state:resolved]

Signed-off-by: wycats <wycats@gmail.com>
  • Loading branch information...
1 parent 1e2caa5 commit e7276a9f099b0229ac76422f8341d5d91dad8872 Santiago Pastorino and Sebastian Martinez committed with wycats Mar 18, 2010
Showing with 1 addition and 1 deletion.
  1. +1 −1 activesupport/test/dependencies_test.rb
@@ -88,7 +88,7 @@ def test_warnings_should_be_enabled_on_first_load
old_warnings, ActiveSupport::Dependencies.warnings_on_first_load = ActiveSupport::Dependencies.warnings_on_first_load, true
filename = "check_warnings"
- expanded = File.expand_path("test/dependencies/#{filename}")
+ expanded = File.expand_path("#{File.dirname(__FILE__)}/dependencies/#{filename}")
$check_warnings_load_count = 0
assert !ActiveSupport::Dependencies.loaded.include?(expanded)

0 comments on commit e7276a9

Please sign in to comment.