Methods
A
D
G
L
N
R
S
T
Instance Public methods
access_frozen_cookies()
# File actionpack/test/dispatch/cookies_test.rb, line 61
def access_frozen_cookies
  cookies["will"] = "work"
  head :ok
end
authenticate()
# File actionpack/test/dispatch/cookies_test.rb, line 35
def authenticate
  cookies["user_name"] = "david"
  head :ok
end
authenticate_for_fourteen_days()
# File actionpack/test/dispatch/cookies_test.rb, line 45
def authenticate_for_fourteen_days
  cookies["user_name"] = { "value" => "david", "expires" => Time.utc(2005, 10, 10,5) }
  head :ok
end
authenticate_for_fourteen_days_with_symbols()
# File actionpack/test/dispatch/cookies_test.rb, line 50
def authenticate_for_fourteen_days_with_symbols
  cookies[:user_name] = { :value => "david", :expires => Time.utc(2005, 10, 10,5) }
  head :ok
end
authenticate_with_http_only()
# File actionpack/test/dispatch/cookies_test.rb, line 78
def authenticate_with_http_only
  cookies["user_name"] = { :value => "david", :httponly => true }
  head :ok
end
authenticate_with_secure()
# File actionpack/test/dispatch/cookies_test.rb, line 83
def authenticate_with_secure
  cookies["user_name"] = { :value => "david", :secure => true }
  head :ok
end
Alias for: logout
logout()
Also aliased as: delete_cookie
# File actionpack/test/dispatch/cookies_test.rb, line 66
def logout
  cookies.delete("user_name")
  head :ok
end
noop()
# File actionpack/test/dispatch/cookies_test.rb, line 200
def noop
  head :ok
end
raise_data_overflow()
# File actionpack/test/dispatch/cookies_test.rb, line 128
def raise_data_overflow
  cookies.signed[:foo] = 'bye!' * 1024
  head :ok
end
set_multiple_cookies()
# File actionpack/test/dispatch/cookies_test.rb, line 55
def set_multiple_cookies
  cookies["user_name"] = { "value" => "david", "expires" => Time.utc(2005, 10, 10,5) }
  cookies["login"]     = "XJ-122"
  head :ok
end
set_with_with_escapable_characters()
# File actionpack/test/dispatch/cookies_test.rb, line 40
def set_with_with_escapable_characters
  cookies["that & guy"] = "foo & bar => baz"
  head :ok
end
string_key()
# File actionpack/test/dispatch/cookies_test.rb, line 185
def string_key
  cookies['user_name'] = "dhh"
  head :ok
end
string_key_mock()
# File actionpack/test/dispatch/cookies_test.rb, line 195
def string_key_mock
  cookies['user_name'] = "david" if cookies['user_name'] == "andrew"
  head :ok
end
symbol_key()
# File actionpack/test/dispatch/cookies_test.rb, line 180
def symbol_key
  cookies[:user_name] = "david"
  head :ok
end
symbol_key_mock()
# File actionpack/test/dispatch/cookies_test.rb, line 190
def symbol_key_mock
  cookies[:user_name] = "david" if cookies[:user_name] == "andrew"
  head :ok
end
tampered_cookies()
# File actionpack/test/dispatch/cookies_test.rb, line 133
def tampered_cookies
  cookies[:tampered] = "BAh7BjoIZm9vIghiYXI%3D--123456780"
  cookies.signed[:tampered]
  head :ok
end