summaryrefslogtreecommitdiffstats
path: root/test/integration
diff options
context:
space:
mode:
authorGo MAEDA <maeda@farend.jp>2019-09-20 01:31:13 +0000
committerGo MAEDA <maeda@farend.jp>2019-09-20 01:31:13 +0000
commit1e53dd7e11fb280487550bc55b35ff4433213f62 (patch)
tree5028ad976a7b0c102aa81b0299d67964b619c1d1 /test/integration
parent43b889d50c55e12578ba9a00118bfc71df0e9b08 (diff)
downloadredmine-1e53dd7e11fb280487550bc55b35ff4433213f62.tar.gz
redmine-1e53dd7e11fb280487550bc55b35ff4433213f62.zip
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
Diffstat (limited to 'test/integration')
-rw-r--r--test/integration/api_test/attachments_test.rb3
1 files changed, 0 insertions, 3 deletions
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