Methods
- O
- P
- R
- T
-
- test_constructor_with_argument_error,
- test_content_type,
- test_delegate_respects_respond_to?,
- test_delegates_open_to_tempfile,
- test_delegates_path_to_tempfile,
- test_delegates_to_tempfile,
- test_delegates_to_tempfile_with_params,
- test_filename_should_be_in_utf_8,
- test_headers,
- test_original_filename,
- test_respond_to?,
- test_tempfile
Instance Public methods
open()
Link
path()
Link
read()
Link
test_constructor_with_argument_error()
Link
test_content_type()
Link
test_delegate_respects_respond_to?()
Link
# File actionpack/test/dispatch/uploaded_file_test.rb, line 62 def test_delegate_respects_respond_to? tf = Class.new { def read; yield end; private :read } uf = Http::UploadedFile.new(:tempfile => tf.new) assert_raises(NoMethodError) do uf.read end end def test_respond_to? tf = Class.new { def read; yield end } uf = Http::UploadedFile.new(:tempfile => tf.new) assert uf.respond_to?(:headers), 'responds to headers' assert uf.respond_to?(:read), 'responds to read' end end end
test_delegates_open_to_tempfile()
Link
test_delegates_path_to_tempfile()
Link
test_delegates_to_tempfile()
Link
test_delegates_to_tempfile_with_params()
Link
test_filename_should_be_in_utf_8()
Link
test_headers()
Link
test_original_filename()
Link
test_respond_to?()
Link
# File actionpack/test/dispatch/uploaded_file_test.rb, line 70 def test_respond_to? tf = Class.new { def read; yield end } uf = Http::UploadedFile.new(:tempfile => tf.new) assert uf.respond_to?(:headers), 'responds to headers' assert uf.respond_to?(:read), 'responds to read' end end