From 9430f05e2e26b3d340ca601ae772da5dee48df8f Mon Sep 17 00:00:00 2001 From: Jean-Philippe Lang Date: Sat, 19 Nov 2011 15:18:06 +0000 Subject: [PATCH] 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 --- test/functional/attachments_controller_test.rb | 2 ++ 1 file changed, 2 insertions(+) diff --git a/test/functional/attachments_controller_test.rb b/test/functional/attachments_controller_test.rb index 034a090a6..f6ed040b5 100644 --- a/test/functional/attachments_controller_test.rb +++ b/test/functional/attachments_controller_test.rb @@ -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))