summaryrefslogtreecommitdiffstats
path: root/test/functional
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2011-11-19 15:18:06 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2011-11-19 15:18:06 +0000
commit9430f05e2e26b3d340ca601ae772da5dee48df8f (patch)
treef84ca4de36c0c536b9d36c88f78ce36bd6743262 /test/functional
parente4cda67cf48624d5f72732b080a10ef708c353c3 (diff)
downloadredmine-9430f05e2e26b3d340ca601ae772da5dee48df8f.tar.gz
redmine-9430f05e2e26b3d340ca601ae772da5dee48df8f.zip
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
Diffstat (limited to 'test/functional')
-rw-r--r--test/functional/attachments_controller_test.rb2
1 files changed, 2 insertions, 0 deletions
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))