mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
add test asserting that 2 letter tlds with 3 letter domain names work when option specified
This commit is contained in:
parent
d495606168
commit
847986bdb7
1 changed files with 7 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue