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
This commit is contained in:
Jean-Philippe Lang 2012-02-19 21:42:09 +00:00
parent dedfdefcf3
commit 148bc9448b
1 changed files with 1 additions and 0 deletions

View File

@ -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