Commit 1c7079db authored by Jean-Philippe Lang's avatar Jean-Philippe Lang

Read attachment fixtures in binary mode.

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@4603 e93f8b46-1217-0410-a6f0-8f06a7374b81
parent 2c830770
...@@ -59,7 +59,7 @@ class ActiveSupport::TestCase ...@@ -59,7 +59,7 @@ class ActiveSupport::TestCase
end end
def uploaded_test_file(name, mime) 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 end
# Mock out a file # Mock out a file
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment