From 1e53dd7e11fb280487550bc55b35ff4433213f62 Mon Sep 17 00:00:00 2001 From: Go MAEDA Date: Fri, 20 Sep 2019 01:31:13 +0000 Subject: Fixes not to call set_tmp_attachments_directory twice after each test (#32094). Patch by Go MAEDA. git-svn-id: http://svn.redmine.org/redmine/trunk@18484 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- test/integration/api_test/attachments_test.rb | 3 --- 1 file changed, 3 deletions(-) (limited to 'test/integration') diff --git a/test/integration/api_test/attachments_test.rb b/test/integration/api_test/attachments_test.rb index f347b396a..af2b397cf 100644 --- a/test/integration/api_test/attachments_test.rb +++ b/test/integration/api_test/attachments_test.rb @@ -61,20 +61,17 @@ class Redmine::ApiTest::AttachmentsTest < Redmine::ApiTest::Base test "GET /attachments/:id.xml should deny access without credentials" do get '/attachments/7.xml' assert_response 401 - set_tmp_attachments_directory end test "GET /attachments/download/:id/:filename should return the attachment content" do get '/attachments/download/7/archive.zip', :headers => credentials('jsmith') assert_response :success assert_equal 'application/zip', @response.content_type - set_tmp_attachments_directory end test "GET /attachments/download/:id/:filename should deny access without credentials" do get '/attachments/download/7/archive.zip' assert_response 401 - set_tmp_attachments_directory end test "GET /attachments/thumbnail/:id should return the thumbnail" do -- cgit v1.2.3