summaryrefslogtreecommitdiff
path: root/test/cgi/test_cgi_header.rb
diff options
context:
space:
mode:
authorxibbar <xibbar@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-09-16 13:30:05 +0000
committerxibbar <xibbar@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-09-16 13:30:05 +0000
commit49f69c3f2ef75c91539ccc7e8abaaa727fbc7132 (patch)
treeca9e975d3dbc0398a690c47b595f0241a73243cc /test/cgi/test_cgi_header.rb
parent8b31af74b7f8bff2738fd19629d8c2517d2ef67b (diff)
* lib/cgi/core.rb: performance improvement.
From CGIAlt http://cgialt.rubyforge.org/ * test/cgi/test_cgi_header.rb: exception class fixed. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@19386 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/cgi/test_cgi_header.rb')
-rwxr-xr-xtest/cgi/test_cgi_header.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/cgi/test_cgi_header.rb b/test/cgi/test_cgi_header.rb
index c92d01754a7..58f82ba3bc5 100755
--- a/test/cgi/test_cgi_header.rb
+++ b/test/cgi/test_cgi_header.rb
@@ -71,7 +71,7 @@ class CGIHeaderTest < Test::Unit::TestCase
def test_cgi_header_argerr
cgi = CGI.new
#expected = NoMethodError # must be ArgumentError
- if defined?(CGI::RELEASE)
+ if RUBY_VERSION>="1.9.0"
expected = ArgumentError # for CGIAlt
else
expected = NoMethodError # for Ruby1.8