Skip to content
Browse files

Ruby 1.9 compat: CGI switched back to Tempfile

  • Loading branch information...
1 parent 8a1f913 commit eda9f49d5781a5f9a5090492a76436598faf3948 @jeremy jeremy committed Nov 8, 2008
Showing with 4 additions and 10 deletions.
  1. +4 −10 actionpack/test/controller/request_test.rb
View
14 actionpack/test/controller/request_test.rb
@@ -735,11 +735,7 @@ def test_boundary_problem_file
file = params['file']
foo = params['foo']
- if RUBY_VERSION > '1.9'
- assert_kind_of File, file
- else
- assert_kind_of Tempfile, file
- end
+ assert_kind_of Tempfile, file
assert_equal 'file.txt', file.original_filename
assert_equal "text/plain", file.content_type
@@ -753,11 +749,9 @@ def test_large_text_file
assert_equal 'bar', params['foo']
file = params['file']
- if RUBY_VERSION > '1.9'
- assert_kind_of File, file
- else
- assert_kind_of Tempfile, file
- end
+
+ assert_kind_of Tempfile, file
+
assert_equal 'file.txt', file.original_filename
assert_equal "text/plain", file.content_type
assert ('a' * 20480) == file.read

0 comments on commit eda9f49

Please sign in to comment.
Something went wrong with that request. Please try again.