Add test to ensure tmp:clear works when tmp is missing

See #20299.
This commit is contained in:
Yoong Kang Lim 2015-05-26 22:09:22 +10:00 committed by Godfrey Chan
parent f06ce4c12a
commit 0cb327c549

@ -285,5 +285,12 @@ def test_template_load_initializers
assert_match(/Hello, World!/, output)
end
def test_tmp_clear_should_work_if_folder_missing
FileUtils.remove_dir("#{app_path}/tmp")
errormsg = Dir.chdir(app_path) { `bundle exec rake tmp:clear` }
assert_predicate $?, :success?
assert_empty errormsg
end
end
end