mirror of
https://github.com/redmine/redmine.git
synced 2025-11-08 06:15:59 +01:00
Update tests assertions after r23581 (#42394).
git-svn-id: https://svn.redmine.org/redmine/trunk@23582 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
@@ -63,7 +63,7 @@ class Redmine::ApiTest::AttachmentsTest < Redmine::ApiTest::Base
|
|||||||
|
|
||||||
test "GET /attachments/download/:id/:filename should deny access without credentials" do
|
test "GET /attachments/download/:id/:filename should deny access without credentials" do
|
||||||
get '/attachments/download/7/archive.zip'
|
get '/attachments/download/7/archive.zip'
|
||||||
assert_response :unauthorized
|
assert_response :redirect
|
||||||
end
|
end
|
||||||
|
|
||||||
test "GET /attachments/thumbnail/:id should return the thumbnail" do
|
test "GET /attachments/thumbnail/:id should return the thumbnail" do
|
||||||
|
|||||||
@@ -26,7 +26,7 @@ class RoutingAttachmentsTest < Redmine::RoutingTest
|
|||||||
should_route 'GET /attachments/1/filename.txt' => 'attachments#show', :id => '1', :filename => 'filename.txt', :format => 'html'
|
should_route 'GET /attachments/1/filename.txt' => 'attachments#show', :id => '1', :filename => 'filename.txt', :format => 'html'
|
||||||
|
|
||||||
should_route 'GET /attachments/download/1' => 'attachments#download', :id => '1'
|
should_route 'GET /attachments/download/1' => 'attachments#download', :id => '1'
|
||||||
should_route 'GET /attachments/download/1/filename.ext' => 'attachments#download', :id => '1', :filename => 'filename.ext'
|
should_route 'GET /attachments/download/1/filename.ext' => 'attachments#download', :id => '1', :filename => 'filename.ext', :format => 'html'
|
||||||
|
|
||||||
should_route 'GET /attachments/thumbnail/1' => 'attachments#thumbnail', :id => '1'
|
should_route 'GET /attachments/thumbnail/1' => 'attachments#thumbnail', :id => '1'
|
||||||
should_route 'GET /attachments/thumbnail/1/200' => 'attachments#thumbnail', :id => '1', :size => '200'
|
should_route 'GET /attachments/thumbnail/1/200' => 'attachments#thumbnail', :id => '1', :size => '200'
|
||||||
|
|||||||
Reference in New Issue
Block a user