diff options
author | Rafael Mendonça França <rafaelmfranca@gmail.com> | 2012-03-16 23:36:46 -0300 |
---|---|---|
committer | Rafael Mendonça França <rafaelmfranca@gmail.com> | 2012-03-17 13:36:35 -0300 |
commit | 041f4eec39712ac96aa1bf1fd3ed9f4cf7bac690 (patch) | |
tree | c0b5468d006a728ba4b6ea593e95a6d30d8f0102 /actionpack/test/dispatch/ssl_test.rb | |
parent | 9ec63eb0491a1b72381833478398c369ab48019a (diff) | |
download | rails-041f4eec39712ac96aa1bf1fd3ed9f4cf7bac690.tar.gz rails-041f4eec39712ac96aa1bf1fd3ed9f4cf7bac690.tar.bz2 rails-041f4eec39712ac96aa1bf1fd3ed9f4cf7bac690.zip |
Some refactoring and update ActionDispatch::SSL code to use the Rack 1.4.x
Diffstat (limited to 'actionpack/test/dispatch/ssl_test.rb')
-rw-r--r-- | actionpack/test/dispatch/ssl_test.rb | 14 |
1 files changed, 0 insertions, 14 deletions
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"]] |