mirror of
https://github.com/puma/puma.git
synced 2022-11-09 13:48:40 -05:00
77edb0398c
`Puma::Configuration._from_file` was removed in 89f37432de
. It was still being used by the `Puma::ControlCLI` class which was previously not being tested while being called with a `--config-file` option.
This PR reintroduces the previous behavior of loading a config file when specified via `pumactl` command.
10 lines
308 B
Ruby
10 lines
308 B
Ruby
require "test_helper"
|
|
|
|
require 'puma/control_cli'
|
|
|
|
class TestPumaControlCli < Minitest::Test
|
|
def test_config_file
|
|
control_cli = Puma::ControlCLI.new ["--config-file", "test/config/state_file_testing_config.rb", "halt"]
|
|
assert_equal "t3-pid", control_cli.instance_variable_get("@pidfile")
|
|
end
|
|
end
|