summaryrefslogtreecommitdiffstats
path: root/test/test_helper.rb
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2011-01-01 12:24:18 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2011-01-01 12:24:18 +0000
commit1c7079db3fb099c6913353c9d56c27628b712026 (patch)
tree6f6e39a05a0ebdd2aa9dc65e8aace72ca002fc49 /test/test_helper.rb
parent2c830770cb39d962e12b072fdebffc35c457888b (diff)
downloadredmine-1c7079db3fb099c6913353c9d56c27628b712026.tar.gz
redmine-1c7079db3fb099c6913353c9d56c27628b712026.zip
Read attachment fixtures in binary mode.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@4603 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'test/test_helper.rb')
-rw-r--r--test/test_helper.rb2
1 files changed, 1 insertions, 1 deletions
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