]> source.dussan.org Git - redmine.git/commitdiff
Read attachment fixtures in binary mode.
authorJean-Philippe Lang <jp_lang@yahoo.fr>
Sat, 1 Jan 2011 12:24:18 +0000 (12:24 +0000)
committerJean-Philippe Lang <jp_lang@yahoo.fr>
Sat, 1 Jan 2011 12:24:18 +0000 (12:24 +0000)
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@4603 e93f8b46-1217-0410-a6f0-8f06a7374b81

test/test_helper.rb

index be87c63f5dc58028406d9a1769d17c2557203862..a6ef56b5fed20ab014c02134173b479716d7102e 100644 (file)
@@ -59,7 +59,7 @@ class ActiveSupport::TestCase
   end
   
   def uploaded_test_file(name, mime)
-    ActionController::TestUploadedFile.new(ActiveSupport::TestCase.fixture_path + "/files/#{name}", mime)
+    ActionController::TestUploadedFile.new(ActiveSupport::TestCase.fixture_path + "/files/#{name}", mime, true)
   end
 
   # Mock out a file