From: Marius Balteanu Date: Tue, 10 Aug 2021 20:26:23 +0000 (+0000) Subject: Fixed "Layout/IndentationWidth: Use 2 (not 4) spaces for indentation." introduced... X-Git-Tag: 5.0.0~290 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=fe4d0d93da6f95408582e53b425e89fc40751f6f;p=redmine.git Fixed "Layout/IndentationWidth: Use 2 (not 4) spaces for indentation." introduced by r21141 (#35634). git-svn-id: http://svn.redmine.org/redmine/trunk@21152 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- diff --git a/test/functional/issues_controller_test.rb b/test/functional/issues_controller_test.rb index b592ee26d..d90dcfacc 100644 --- a/test/functional/issues_controller_test.rb +++ b/test/functional/issues_controller_test.rb @@ -3158,16 +3158,16 @@ class IssuesControllerTest < Redmine::ControllerTest end def test_show_should_not_display_edit_attachment_icon_for_user_without_edit_issue_permission_on_tracker - role = Role.find(2) - role.set_permission_trackers 'edit_issues', [2, 3] - role.save! + role = Role.find(2) + role.set_permission_trackers 'edit_issues', [2, 3] + role.save! - @request.session[:user_id] = 2 + @request.session[:user_id] = 2 - get :show, params: {id: 4} + get :show, params: {id: 4} - assert_response :success - assert_select 'div.attachments .icon-edit', 0 + assert_response :success + assert_select 'div.attachments .icon-edit', 0 end def test_show_should_not_display_delete_attachment_icon_for_user_without_edit_issue_permission_on_tracker