file upload test now uses ActionController::TestUploadedFile

git-svn-id: http://redmine.rubyforge.org/svn/trunk@251 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Jean-Philippe Lang
2007-02-18 11:41:39 +00:00
parent 840fcf2fa9
commit 5a241fd12e
3 changed files with 21 additions and 23 deletions
+17
View File
@@ -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