diff options
author | Marius Balteanu <marius.balteanu@zitec.com> | 2025-03-29 13:05:08 +0000 |
---|---|---|
committer | Marius Balteanu <marius.balteanu@zitec.com> | 2025-03-29 13:05:08 +0000 |
commit | f4e5e36decb12fa24955c46dd7f90ef0f01ee013 (patch) | |
tree | baf56c4eceda0d706e3dbc0a7a54506b09946471 | |
parent | 62fee35f001eb4a2b6ec79e8fcf05e6035f2afaa (diff) | |
download | redmine-f4e5e36decb12fa24955c46dd7f90ef0f01ee013.tar.gz redmine-f4e5e36decb12fa24955c46dd7f90ef0f01ee013.zip |
Update tests assertions after r23581 (#42394).
git-svn-id: https://svn.redmine.org/redmine/trunk@23582 e93f8b46-1217-0410-a6f0-8f06a7374b81
-rw-r--r-- | test/integration/api_test/attachments_test.rb | 2 | ||||
-rw-r--r-- | test/integration/routing/attachments_test.rb | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/test/integration/api_test/attachments_test.rb b/test/integration/api_test/attachments_test.rb index 9bb079c3d..524399bdc 100644 --- a/test/integration/api_test/attachments_test.rb +++ b/test/integration/api_test/attachments_test.rb @@ -63,7 +63,7 @@ class Redmine::ApiTest::AttachmentsTest < Redmine::ApiTest::Base test "GET /attachments/download/:id/:filename should deny access without credentials" do get '/attachments/download/7/archive.zip' - assert_response :unauthorized + assert_response :redirect end test "GET /attachments/thumbnail/:id should return the thumbnail" do diff --git a/test/integration/routing/attachments_test.rb b/test/integration/routing/attachments_test.rb index 15e61635b..18b411f99 100644 --- a/test/integration/routing/attachments_test.rb +++ b/test/integration/routing/attachments_test.rb @@ -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/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/200' => 'attachments#thumbnail', :id => '1', :size => '200' |