Fixed functional tests that writes in fixtures folder.

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@7848 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Jean-Philippe Lang 2011-11-19 15:18:06 +00:00
parent e4cda67cf4
commit 9430f05e2e
1 changed files with 2 additions and 0 deletions

View File

@ -72,6 +72,7 @@ class AttachmentsControllerTest < ActionController::TestCase
end end
def test_show_text_file_utf_8 def test_show_text_file_utf_8
set_tmp_attachments_directory
a = Attachment.new(:container => Issue.find(1), a = Attachment.new(:container => Issue.find(1),
:file => uploaded_test_file("japanese-utf-8.txt", "text/plain"), :file => uploaded_test_file("japanese-utf-8.txt", "text/plain"),
:author => User.find(1)) :author => User.find(1))
@ -92,6 +93,7 @@ class AttachmentsControllerTest < ActionController::TestCase
end end
def test_show_text_file_should_strip_non_utf8_content def test_show_text_file_should_strip_non_utf8_content
set_tmp_attachments_directory
a = Attachment.new(:container => Issue.find(1), a = Attachment.new(:container => Issue.find(1),
:file => uploaded_test_file("iso8859-1.txt", "text/plain"), :file => uploaded_test_file("iso8859-1.txt", "text/plain"),
:author => User.find(1)) :author => User.find(1))