提交 edf167e8 编写于 作者: P Pierre Hedkvist

Added test case for starting rails with daemon option, this should set the...

Added test case for starting rails with daemon option, this should set the option[:daemonize] to true, otherwise the option[:daemonize] will be set to false
上级 29da7d1f
......@@ -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.
先完成此消息的编辑!
想要评论请 注册