1
0
Fork 0
mirror of https://github.com/puma/puma.git synced 2022-11-09 13:48:40 -05:00
puma--puma/test/test_pumactl.rb
schneems 77edb0398c [close #1238] Don't call non-existent method
`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.
2017-03-10 10:30:27 -06:00

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