Blob Blame History Raw
From 99108ff1614b86569de954aa2fdac3d7bae8fb55 Mon Sep 17 00:00:00 2001
From: Vipul A M <vipulnsward@gmail.com>
Date: Mon, 10 Feb 2020 04:11:19 +0530
Subject: [PATCH] Fix wrong spec asserting headers maintain original definition

This was introduced in https://github.com/rails/rails/pull/20559 but was wrongly asserting %w[close] to match close as the header value
---
 actionpack/test/dispatch/ssl_test.rb | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/actionpack/test/dispatch/ssl_test.rb b/actionpack/test/dispatch/ssl_test.rb
index 0278ec12b4af..2989039c2d35 100644
--- a/actionpack/test/dispatch/ssl_test.rb
+++ b/actionpack/test/dispatch/ssl_test.rb
@@ -222,7 +222,7 @@ def test_no_cookies
   end
 
   def test_keeps_original_headers_behavior
-    get headers: { "Connection" => %w[close] }
+    get headers: { "Connection" => "close" }
     assert_equal "close", response.headers["Connection"]
   end
 end