summaryrefslogtreecommitdiffstats
path: root/test/functional/attachments_controller_test.rb
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2012-02-19 21:42:09 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2012-02-19 21:42:09 +0000
commit148bc9448bc22f53f44bd55e35d3afe3672bd670 (patch)
treec9f5faf2185d2cbc67dd4e680af71a2854636bcd /test/functional/attachments_controller_test.rb
parentdedfdefcf300b99320a32353f1e54b9919d7aadf (diff)
downloadredmine-148bc9448bc22f53f44bd55e35d3afe3672bd670.tar.gz
redmine-148bc9448bc22f53f44bd55e35d3afe3672bd670.zip
Fixed a test that writes into fixtures directory.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@8914 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'test/functional/attachments_controller_test.rb')
-rw-r--r--test/functional/attachments_controller_test.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/test/functional/attachments_controller_test.rb b/test/functional/attachments_controller_test.rb
index 311c72588..834e6b08b 100644
--- a/test/functional/attachments_controller_test.rb
+++ b/test/functional/attachments_controller_test.rb
@@ -211,6 +211,7 @@ class AttachmentsControllerTest < ActionController::TestCase
end
def test_show_file_without_container_should_be_denied
+ set_tmp_attachments_directory
attachment = Attachment.create!(:file => uploaded_test_file("testfile.txt", "text/plain"), :author_id => 2)
@request.session[:user_id] = 2