From 347c554f7ee503f06b59dbe1bd3a6ae818a33efb Mon Sep 17 00:00:00 2001 From: naruse Date: Wed, 25 Jul 2012 00:19:09 +0000 Subject: * 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 --- test/cgi/test_cgi_core.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'test/cgi') diff --git a/test/cgi/test_cgi_core.rb b/test/cgi/test_cgi_core.rb index 0efba195cd..dab22d3114 100644 --- a/test/cgi/test_cgi_core.rb +++ b/test/cgi/test_cgi_core.rb @@ -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}**" -- cgit v1.2.3