diff --git a/test/integration/test_configuration.rb b/test/integration/test_configuration.rb index 516a3dd3..ca27c39c 100644 --- a/test/integration/test_configuration.rb +++ b/test/integration/test_configuration.rb @@ -183,7 +183,7 @@ def test_modify_internals assert_healthy("http://#{addr}:#{port}") env = Net::HTTP.get(URI("http://#{addr}:#{port}/")) - assert_match('"rack.url_scheme"=>"https"', env) + assert_match({"rack.url_scheme"=>"https"}.inspect[1..-2], env) assert_stderr(/\[FOO\]/) assert_clean_shutdown(pid) diff --git a/test/integration/test_info.rb b/test/integration/test_info.rb index 8d403670..f65170a8 100644 --- a/test/integration/test_info.rb +++ b/test/integration/test_info.rb @@ -14,7 +14,7 @@ def test_after_request_complete assert_stderr "worker=3 gen=0 ready" response = http_get("http://#{addr}:#{port}/") - assert_equal "{:workers_count=>4, :live_workers_count=>4}", response.body + assert_equal({workers_count: 4, live_workers_count: 4}.inspect, response.body) Process.kill(:TTOU, pid) assert_stderr(/worker=3 pid=\d+ gen=0 reaped/) @@ -22,7 +22,7 @@ def test_after_request_complete assert_stderr(/worker=2 pid=\d+ gen=0 reaped/) response = http_get("http://#{addr}:#{port}/") - assert_equal "{:workers_count=>4, :live_workers_count=>2}", response.body + assert_equal({workers_count: 4, live_workers_count: 2}.inspect, response.body) assert_clean_shutdown(pid) end