From 041f4eec39712ac96aa1bf1fd3ed9f4cf7bac690 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rafael=20Mendon=C3=A7a=20Fran=C3=A7a?= Date: Fri, 16 Mar 2012 23:36:46 -0300 Subject: Some refactoring and update ActionDispatch::SSL code to use the Rack 1.4.x --- actionpack/test/dispatch/ssl_test.rb | 14 -------------- 1 file changed, 14 deletions(-) (limited to 'actionpack/test/dispatch/ssl_test.rb') diff --git a/actionpack/test/dispatch/ssl_test.rb b/actionpack/test/dispatch/ssl_test.rb index 187ed53d9f..b1463f31cf 100644 --- a/actionpack/test/dispatch/ssl_test.rb +++ b/actionpack/test/dispatch/ssl_test.rb @@ -90,20 +90,6 @@ class SSLTest < ActionDispatch::IntegrationTest response.headers['Set-Cookie'].split("\n") end - def test_legacy_array_headers - self.app = ActionDispatch::SSL.new(lambda { |env| - headers = { - 'Content-Type' => "text/html", - 'Set-Cookie' => ["id=1; path=/", "token=abc; path=/; HttpOnly"] - } - [200, headers, ["OK"]] - }) - - get "https://example.org/" - assert_equal ["id=1; path=/; secure", "token=abc; path=/; HttpOnly; secure"], - response.headers['Set-Cookie'].split("\n") - end - def test_no_cookies self.app = ActionDispatch::SSL.new(lambda { |env| [200, {'Content-Type' => "text/html"}, ["OK"]] -- cgit v1.2.3