1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

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
This commit is contained in:
JuanitoFatas 2015-11-12 17:41:13 +08:00
parent 99c1043aa9
commit 67a7a1526f

View file

@ -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