mirror of
https://github.com/ruby/ruby.git
synced 2025-09-15 08:33:58 +02:00
* lib/cgi/html.rb (element_init): suppress redefine warning.
Don't define methods if they are already defined. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36529 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
ead728ca7d
commit
347c554f7e
3 changed files with 11 additions and 2 deletions
|
@ -183,7 +183,7 @@ class CGICoreTest < Test::Unit::TestCase
|
|||
}
|
||||
ENV.update(@environ)
|
||||
ex = assert_raise(StandardError) do
|
||||
cgi = CGI.new
|
||||
CGI.new
|
||||
end
|
||||
assert_equal("too large post data.", ex.message)
|
||||
end if CGI.const_defined?(:MAX_CONTENT_LENGTH)
|
||||
|
@ -304,7 +304,7 @@ class CGICoreTest < Test::Unit::TestCase
|
|||
HTTP_ACCEPT_LANGUAGE HTTP_CACHE_CONTROL HTTP_FROM HTTP_HOST
|
||||
HTTP_NEGOTIATE HTTP_PRAGMA HTTP_REFERER HTTP_USER_AGENT
|
||||
]
|
||||
list2 = %w[ CONTENT_LENGTH SERVER_PORT ]
|
||||
# list2 = %w[ CONTENT_LENGTH SERVER_PORT ]
|
||||
## string expected
|
||||
list1.each do |name|
|
||||
@environ[name] = "**#{name}**"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue