]> source.dussan.org Git - redmine.git/commitdiff
Fixed functional tests that writes in fixtures folder.
authorJean-Philippe Lang <jp_lang@yahoo.fr>
Sat, 19 Nov 2011 15:18:06 +0000 (15:18 +0000)
committerJean-Philippe Lang <jp_lang@yahoo.fr>
Sat, 19 Nov 2011 15:18:06 +0000 (15:18 +0000)
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@7848 e93f8b46-1217-0410-a6f0-8f06a7374b81

test/functional/attachments_controller_test.rb

index 034a090a6e843e6c77fe1f05e56f997226b27158..f6ed040b54c4c7e0a2a2c284a0d02b579c596063 100644 (file)
@@ -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))