From: Jean-Philippe Lang Date: Sat, 1 Jan 2011 12:24:18 +0000 (+0000) Subject: Read attachment fixtures in binary mode. X-Git-Tag: 1.2.0~1153 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=1c7079db3fb099c6913353c9d56c27628b712026;p=redmine.git Read attachment fixtures in binary mode. git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@4603 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- diff --git a/test/test_helper.rb b/test/test_helper.rb index be87c63f5..a6ef56b5f 100644 --- a/test/test_helper.rb +++ b/test/test_helper.rb @@ -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