From 847986bdb73ce1b46a3a381889ecf5f886e9211b Mon Sep 17 00:00:00 2001 From: Jon Rowe Date: Tue, 30 Apr 2013 14:26:29 +1000 Subject: add test asserting that 2 letter tlds with 3 letter domain names work when option specified --- actionpack/test/dispatch/cookies_test.rb | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/actionpack/test/dispatch/cookies_test.rb b/actionpack/test/dispatch/cookies_test.rb index 91ac13e7c6..cc6a409d6e 100644 --- a/actionpack/test/dispatch/cookies_test.rb +++ b/actionpack/test/dispatch/cookies_test.rb @@ -634,6 +634,13 @@ class CookiesTest < ActionController::TestCase assert_cookie_header "user_name=rizwanreza; domain=.nextangle.local; path=/" end + def test_cookie_with_all_domain_option_using_a_non_standard_2_letter_tld + @request.host = "admin.lvh.me" + get :set_cookie_with_domain_and_tld + assert_response :success + assert_cookie_header "user_name=rizwanreza; domain=.lvh.me; path=/" + end + def test_cookie_with_all_domain_option_using_host_with_port_and_tld_length @request.host = "nextangle.local:3000" get :set_cookie_with_domain_and_tld -- cgit v1.2.3