diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2007-02-18 11:41:39 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2007-02-18 11:41:39 +0000 |
commit | 5a241fd12e96680721725fcc633963e1df85392a (patch) | |
tree | 19955e710633a978ed2d52865f5080fca81fe0ba /test/test_helper.rb | |
parent | 840fcf2fa97bcc59d244b8a89ce54afea73e3ac3 (diff) | |
download | redmine-5a241fd12e96680721725fcc633963e1df85392a.tar.gz redmine-5a241fd12e96680721725fcc633963e1df85392a.zip |
file upload test now uses ActionController::TestUploadedFile
git-svn-id: http://redmine.rubyforge.org/svn/trunk@251 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'test/test_helper.rb')
-rw-r--r-- | test/test_helper.rb | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/test/test_helper.rb b/test/test_helper.rb index 2e4f7dcd0..b5218c29b 100644 --- a/test/test_helper.rb +++ b/test/test_helper.rb @@ -53,3 +53,20 @@ class Test::Unit::TestCase assert_equal login, User.find(session[:user_id]).login end end + + +# ActionController::TestUploadedFile bug +# see http://dev.rubyonrails.org/ticket/4635 +class String + def original_filename + "testfile.txt" + end + + def content_type + "text/plain" + end + + def read + self.to_s + end +end
\ No newline at end of file |