Skip to content

Commit 4bf1745

Browse files
committed
fix source indent of AttachmentsControllerTest
git-svn-id: http://svn.redmine.org/redmine/trunk@20082 e93f8b46-1217-0410-a6f0-8f06a7374b81
1 parent 8df1fc3 commit 4bf1745

File tree

1 file changed

+17
-5
lines changed

1 file changed

+17
-5
lines changed

test/functional/attachments_controller_test.rb

Lines changed: 17 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -579,10 +579,13 @@ def test_update_all_with_failure
579579

580580
def test_download_all_with_valid_container
581581
@request.session[:user_id] = 2
582-
get :download_all, :params => {
582+
get(
583+
:download_all,
584+
:params => {
583585
:object_type => 'issues',
584586
:object_id => '2'
585587
}
588+
)
586589
assert_response 200
587590
assert_equal response.headers['Content-Type'], 'application/zip'
588591
assert_match /issue-2-attachments.zip/, response.headers['Content-Disposition']
@@ -591,31 +594,40 @@ def test_download_all_with_valid_container
591594

592595
def test_download_all_with_invalid_container
593596
@request.session[:user_id] = 2
594-
get :download_all, :params => {
597+
get(
598+
:download_all,
599+
:params => {
595600
:object_type => 'issues',
596601
:object_id => '999'
597602
}
603+
)
598604
assert_response 404
599605
end
600606

601607
def test_download_all_without_readable_attachments
602608
@request.session[:user_id] = 2
603-
get :download_all, :params => {
609+
get(
610+
:download_all,
611+
:params => {
604612
:object_type => 'issues',
605613
:object_id => '1'
606614
}
615+
)
607616
assert_equal Issue.find(1).attachments, []
608617
assert_response 404
609618
end
610619

611620
def test_download_all_with_maximum_bulk_download_size_larger_than_attachments
612621
with_settings :bulk_download_max_size => 0 do
613622
@request.session[:user_id] = 2
614-
get :download_all, :params => {
623+
get(
624+
:download_all,
625+
:params => {
615626
:object_type => 'issues',
616627
:object_id => '2',
617628
:back_url => '/issues/2'
618-
}
629+
}
630+
)
619631
assert_redirected_to '/issues/2'
620632
assert_equal flash[:error], 'These attachments cannot be bulk downloaded because the total file size exceeds the maximum allowed size (0 Bytes)'
621633
end

0 commit comments

Comments
 (0)