diff options
author | Rafael Mendonça França <rafaelmfranca@gmail.com> | 2015-01-02 21:27:38 -0300 |
---|---|---|
committer | Rafael Mendonça França <rafaelmfranca@gmail.com> | 2015-01-02 21:27:38 -0300 |
commit | 3456d543eba1f29e97c6c924302ea6898d9ab1d8 (patch) | |
tree | a83cd587ff3c929cdeacdcbc1ec51e6282600bff | |
parent | 540a81852618ad70695fd2902c4a8a16b0be3cac (diff) | |
parent | 847986bdb73ce1b46a3a381889ecf5f886e9211b (diff) | |
download | rails-3456d543eba1f29e97c6c924302ea6898d9ab1d8.tar.gz rails-3456d543eba1f29e97c6c924302ea6898d9ab1d8.tar.bz2 rails-3456d543eba1f29e97c6c924302ea6898d9ab1d8.zip |
Merge pull request #10380 from JonRowe/test_all_domain_2_letter_tld
Assert that 2 letter tlds with 3 letter domain names work when option specified.
-rw-r--r-- | actionpack/test/dispatch/cookies_test.rb | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/actionpack/test/dispatch/cookies_test.rb b/actionpack/test/dispatch/cookies_test.rb index 19a98a4054..6223a52a76 100644 --- a/actionpack/test/dispatch/cookies_test.rb +++ b/actionpack/test/dispatch/cookies_test.rb @@ -987,6 +987,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 |