aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/test
diff options
context:
space:
mode:
authorJon Rowe <hello@jonrowe.co.uk>2013-04-30 14:26:29 +1000
committerJon Rowe <hello@jonrowe.co.uk>2013-04-30 14:26:29 +1000
commit847986bdb73ce1b46a3a381889ecf5f886e9211b (patch)
tree5a1d19ddd97029146f4d7ed76fc248f20d93b6e8 /actionpack/test
parentd495606168f638b272f5775b2a0a796f13ab7c1b (diff)
downloadrails-847986bdb73ce1b46a3a381889ecf5f886e9211b.tar.gz
rails-847986bdb73ce1b46a3a381889ecf5f886e9211b.tar.bz2
rails-847986bdb73ce1b46a3a381889ecf5f886e9211b.zip
add test asserting that 2 letter tlds with 3 letter domain names work when option specified
Diffstat (limited to 'actionpack/test')
-rw-r--r--actionpack/test/dispatch/cookies_test.rb7
1 files changed, 7 insertions, 0 deletions
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