diff --git a/activesupport/test/file_update_checker_shared_tests.rb b/activesupport/test/file_update_checker_shared_tests.rb index 6be3ab6047..100cbc9756 100644 --- a/activesupport/test/file_update_checker_shared_tests.rb +++ b/activesupport/test/file_update_checker_shared_tests.rb @@ -17,7 +17,7 @@ module FileUpdateCheckerSharedTests end def teardown - FileUtils.rm_rf(@tmpdir) if @tmpdir + FileUtils.rm_rf(@tmpdir) if defined? @tmpdir end test 'should not execute the block if no paths are given' do