aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKasper Timm Hansen <kaspth@gmail.com>2015-11-12 15:10:36 +0100
committerKasper Timm Hansen <kaspth@gmail.com>2015-11-12 15:10:36 +0100
commit53d04697d5c9450ecb5b7f37bdf0d5f12dd5ded5 (patch)
treeb0b36cd19b668582d05dd14a49c3c3e42934c6d9
parent99c1043aa9a1ff81aa1eef6e957f7ebe89ff25f1 (diff)
parent67a7a1526f0533dac88b82e60ccf9e3fb93bd09f (diff)
downloadrails-53d04697d5c9450ecb5b7f37bdf0d5f12dd5ded5.tar.gz
rails-53d04697d5c9450ecb5b7f37bdf0d5f12dd5ded5.tar.bz2
rails-53d04697d5c9450ecb5b7f37bdf0d5f12dd5ded5.zip
Merge pull request #22273 from JuanitoFatas/patch/fix-a-warning-in-active-support-test-suite
Fix instance variable not defined warning from Active Support test suite
-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