diff options
Diffstat (limited to 'test/cgi')
-rwxr-xr-x | test/cgi/test_cgi_multipart.rb | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/test/cgi/test_cgi_multipart.rb b/test/cgi/test_cgi_multipart.rb index 18eb741d7..794021a9b 100755 --- a/test/cgi/test_cgi_multipart.rb +++ b/test/cgi/test_cgi_multipart.rb @@ -150,9 +150,9 @@ class CGIMultipartTest < Test::Unit::TestCase name = hash[:name] expected = hash[:value] expected_class = @expected_class || (hash[:value].length < threshold ? StringIO : Tempfile) - assert_kind_of(expected_class, cgi[name]) if RUBY_VERSION<"1.9" - assert_equal(expected, cgi[name].read()) if RUBY_VERSION<"1.9" - assert_equal(hash[:filename] || '', cgi[name].original_filename) #if hash[:filename] + assert_kind_of(expected_class, cgi[name]) + assert_equal(expected, cgi[name].read()) + assert_equal(hash[:filename] || '', cgi[name].original_filename) #if hash[:filename] assert_equal(hash[:content_type] || '', cgi[name].content_type) #if hash[:content_type] end end @@ -192,7 +192,7 @@ class CGIMultipartTest < Test::Unit::TestCase ] @expected_class = Tempfile _test_multipart() - end + end if RUBY_VERSION < "1.9" def _set_const(klass, name, value) |