mirror of
https://github.com/redmine/redmine.git
synced 2026-02-08 15:47:45 +01:00
Merged r21948 from trunk to 5.0-stable (#37880).
git-svn-id: https://svn.redmine.org/redmine/branches/5.0-stable@21949 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
@@ -631,7 +631,23 @@ class AttachmentsControllerTest < Redmine::ControllerTest
|
||||
:params => {
|
||||
:object_type => 'issues',
|
||||
:object_id => '2',
|
||||
:back_url => '/issues/2'
|
||||
:back_url => '/issues/123'
|
||||
}
|
||||
)
|
||||
assert_redirected_to '/issues/123'
|
||||
assert_equal flash[:error], 'These attachments cannot be bulk downloaded because the total file size exceeds the maximum allowed size (0 Bytes)'
|
||||
end
|
||||
end
|
||||
|
||||
def test_download_all_redirects_to_container_url_on_error
|
||||
with_settings :bulk_download_max_size => 0 do
|
||||
@request.session[:user_id] = 2
|
||||
get(
|
||||
:download_all,
|
||||
:params => {
|
||||
:object_type => 'issues',
|
||||
:object_id => '2',
|
||||
:back_url => 'https://example.com'
|
||||
}
|
||||
)
|
||||
assert_redirected_to '/issues/2'
|
||||
|
||||
Reference in New Issue
Block a user