Ruby on Rails | Screencasts | Download | Documentation | Weblog | Community | Source

Ticket #4105 (closed enhancement: fixed)

Opened 4 years ago

Last modified 4 years ago

[PATCH] ActionController::TestUploadedFile object for testing file uploads

Reported by: turnip@turnipspatch.com Assigned to: David
Priority: normal Milestone:
Component: ActionPack Version: 1.0.0
Severity: normal Keywords:
Cc:

Description

Taking this a step folder, this patch adds an ActionController::TestUploadedFile object which can be passed to request params in functional tests. The rdoc has a usage example.

Attachments

test_uploaded_file.diff (3.0 kB) - added by turnip@turnipspatch.com on 03/06/06 23:27:55.
patch
mona_lisa.jpg (155.8 kB) - added by turnip@turnipspatch.com on 03/06/06 23:28:57.
test/fixtures/multipart/mona_lisa.jpg

Change History

03/06/06 23:27:14 changed by turnip@turnipspatch.com

Err... folder? Further, I mean. I must be going mad. Sorry.

03/06/06 23:27:55 changed by turnip@turnipspatch.com

  • attachment test_uploaded_file.diff added.

patch

03/06/06 23:28:57 changed by turnip@turnipspatch.com

  • attachment mona_lisa.jpg added.

test/fixtures/multipart/mona_lisa.jpg

03/18/06 20:10:57 changed by david

  • status changed from new to closed.
  • resolution set to fixed.

(In [3939]) Added easy support for testing file uploads with fixture_file_upload (closes #4105) [turnip@turnipspatch.com]