@@ -211,6 +211,7 class AttachmentsControllerTest < ActionController::TestCase | |||||
211 | end |
|
211 | end | |
212 |
|
212 | |||
213 | def test_show_file_without_container_should_be_denied |
|
213 | def test_show_file_without_container_should_be_denied | |
|
214 | set_tmp_attachments_directory | |||
214 | attachment = Attachment.create!(:file => uploaded_test_file("testfile.txt", "text/plain"), :author_id => 2) |
|
215 | attachment = Attachment.create!(:file => uploaded_test_file("testfile.txt", "text/plain"), :author_id => 2) | |
215 |
|
216 | |||
216 | @request.session[:user_id] = 2 |
|
217 | @request.session[:user_id] = 2 |
General Comments 0
You need to be logged in to leave comments.
Login now