提交 b0062eef 编写于 作者: X Xavier Noria

silences stderr to prevent an expected error message in the test suite from being echoed

上级 2561a1f5
......@@ -66,8 +66,7 @@ def test_invalid_application_name_is_fixed
end
def test_application_new_exits_with_non_zero_code_on_invalid_application_name
# TODO: Suppress the output of this (it's because of a Thor::Error)
`rails new test`
silence_stderr { `rails new test` }
assert_equal false, $?.success?
end
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册