提交 0cb327c5 编写于 作者: Y Yoong Kang Lim 提交者: Godfrey Chan

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

See #20299.
上级 f06ce4c1
......@@ -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
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册