Skip to content

Commit

Permalink
And, reinstate code for test ENV var management
Browse files Browse the repository at this point in the history
  • Loading branch information
olleolleolle committed Oct 25, 2019
1 parent cf7478a commit d763861
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/test_pumactl.rb
Expand Up @@ -49,7 +49,7 @@ def test_rack_env_without_environment
end

def test_environment_without_rack_env
with_env("RACK_ENV" => nil) do
with_env("RACK_ENV" => nil, 'RAILS_ENV' => nil) do
control_cli = Puma::ControlCLI.new ["halt"]
assert_nil control_cli.instance_variable_get("@environment")

Expand Down Expand Up @@ -91,7 +91,7 @@ def test_default_config_file_exist
puma_config_file = "config/puma.rb"
development_config_file = "config/puma/development.rb"

with_env("RACK_ENV" => nil) do
with_env("RACK_ENV" => nil, 'RAILS_ENV' => nil) do
with_config_file(puma_config_file, port) do
control_cli = Puma::ControlCLI.new ["halt"]
assert_equal puma_config_file, control_cli.instance_variable_get("@config_file")
Expand Down

0 comments on commit d763861

Please sign in to comment.