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:
parent
e4cda67cf4
commit
9430f05e2e
|
@ -72,6 +72,7 @@ class AttachmentsControllerTest < ActionController::TestCase
|
|||
end
|
||||
|
||||
def test_show_text_file_utf_8
|
||||
set_tmp_attachments_directory
|
||||
a = Attachment.new(:container => Issue.find(1),
|
||||
:file => uploaded_test_file("japanese-utf-8.txt", "text/plain"),
|
||||
:author => User.find(1))
|
||||
|
@ -92,6 +93,7 @@ class AttachmentsControllerTest < ActionController::TestCase
|
|||
end
|
||||
|
||||
def test_show_text_file_should_strip_non_utf8_content
|
||||
set_tmp_attachments_directory
|
||||
a = Attachment.new(:container => Issue.find(1),
|
||||
:file => uploaded_test_file("iso8859-1.txt", "text/plain"),
|
||||
:author => User.find(1))
|
||||
|
|
Loading…
Reference in New Issue