diff options
Diffstat (limited to 'test/cgi')
-rwxr-xr-x | test/cgi/test_cgi_header.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/cgi/test_cgi_header.rb b/test/cgi/test_cgi_header.rb index c92d01754a..58f82ba3bc 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 |