aboutsummaryrefslogtreecommitdiffstats
path: root/activesupport/test/file_update_checker_shared_tests.rb
diff options
context:
space:
mode:
authorJuanitoFatas <katehuang0320@gmail.com>2015-11-12 17:41:13 +0800
committerJuanitoFatas <katehuang0320@gmail.com>2015-11-12 17:41:13 +0800
commit67a7a1526f0533dac88b82e60ccf9e3fb93bd09f (patch)
treeb0b36cd19b668582d05dd14a49c3c3e42934c6d9 /activesupport/test/file_update_checker_shared_tests.rb
parent99c1043aa9a1ff81aa1eef6e957f7ebe89ff25f1 (diff)
downloadrails-67a7a1526f0533dac88b82e60ccf9e3fb93bd09f.tar.gz
rails-67a7a1526f0533dac88b82e60ccf9e3fb93bd09f.tar.bz2
rails-67a7a1526f0533dac88b82e60ccf9e3fb93bd09f.zip
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
Diffstat (limited to 'activesupport/test/file_update_checker_shared_tests.rb')
-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