]> source.dussan.org Git - redmine.git/commitdiff
Merged r21152 to 4.1-stable (#35634).
authorMarius Balteanu <marius.balteanu@zitec.com>
Wed, 11 Aug 2021 20:37:13 +0000 (20:37 +0000)
committerMarius Balteanu <marius.balteanu@zitec.com>
Wed, 11 Aug 2021 20:37:13 +0000 (20:37 +0000)
git-svn-id: http://svn.redmine.org/redmine/branches/4.1-stable@21155 e93f8b46-1217-0410-a6f0-8f06a7374b81

test/functional/issues_controller_test.rb

index 2e663c1c3a0e71e10fbafab9fbb121f509c0a791..42c3b53c4832ad480f90f32a5c4b91a2d277a14b 100644 (file)
@@ -2675,16 +2675,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