зеркало из https://github.com/github/ruby.git
cookie.rb: trailing comma
* lib/cgi/cookie.rb: add trailing comma for further lines. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@50401 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
Родитель
9547194750
Коммит
5d071fe381
|
@ -11,11 +11,11 @@ class CGI
|
|||
# cookie1 = CGI::Cookie.new("name", "value1", "value2", ...)
|
||||
# cookie1 = CGI::Cookie.new("name" => "name", "value" => "value")
|
||||
# cookie1 = CGI::Cookie.new('name' => 'name',
|
||||
# 'value' => ['value1', 'value2', ...],
|
||||
# 'path' => 'path', # optional
|
||||
# 'domain' => 'domain', # optional
|
||||
# 'expires' => Time.now, # optional
|
||||
# 'secure' => true # optional
|
||||
# 'value' => ['value1', 'value2', ...],
|
||||
# 'path' => 'path', # optional
|
||||
# 'domain' => 'domain', # optional
|
||||
# 'expires' => Time.now, # optional
|
||||
# 'secure' => true, # optional
|
||||
# )
|
||||
#
|
||||
# cgi.out("cookie" => [cookie1, cookie2]) { "string" }
|
||||
|
|
|
@ -44,7 +44,7 @@ class CGICookieTest < Test::Unit::TestCase
|
|||
'path'=>'/cgi-bin/myapp/',
|
||||
'domain'=>'www.example.com',
|
||||
'expires'=>t,
|
||||
'secure'=>true
|
||||
'secure'=>true,
|
||||
)
|
||||
assert_equal('name1', cookie.name)
|
||||
assert_equal(value, cookie.value)
|
||||
|
|
Загрузка…
Ссылка в новой задаче