aboutsummaryrefslogtreecommitdiffstats
path: root/activesupport
diff options
context:
space:
mode:
Diffstat (limited to 'activesupport')
-rw-r--r--activesupport/test/file_update_checker_shared_tests.rb2
1 files changed, 1 insertions, 1 deletions
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