提交 87edd722 编写于 作者: R Ryuta Kamizono 提交者: GitHub

Merge pull request #30883 from PHedkvist/add_daemon_command_test

Added test case for starting rails with daemon option
......@@ -22,6 +22,18 @@ def test_environment_without_server_option
assert_nil options[:server]
end
def test_server_option_with_daemon
args = ["-d"]
options = parse_arguments(args)
assert_equal true, options[:daemonize]
end
def test_server_option_without_daemon
args = []
options = parse_arguments(args)
assert_equal false, options[:daemonize]
end
def test_server_option_without_environment
args = ["thin"]
with_rack_env nil do
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册