From 67a7a1526f0533dac88b82e60ccf9e3fb93bd09f Mon Sep 17 00:00:00 2001 From: JuanitoFatas Date: Thu, 12 Nov 2015 17:41:13 +0800 Subject: [PATCH] Fix instance variable not defined warning from Active Support test suite Before ./Users/Juan/dev/rails/activesupport/test/file_update_checker_shared_tests.rb:20: warning: instance variable @tmpdir not initialized After No warnings --- activesupport/test/file_update_checker_shared_tests.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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