]> source.dussan.org Git - redmine.git/commitdiff
Fixed "Layout/IndentationWidth: Use 2 (not 4) spaces for indentation." introduced...
authorMarius Balteanu <marius.balteanu@zitec.com>
Tue, 10 Aug 2021 20:26:23 +0000 (20:26 +0000)
committerMarius Balteanu <marius.balteanu@zitec.com>
Tue, 10 Aug 2021 20:26:23 +0000 (20:26 +0000)
git-svn-id: http://svn.redmine.org/redmine/trunk@21152 e93f8b46-1217-0410-a6f0-8f06a7374b81

test/functional/issues_controller_test.rb

index b592ee26d03624fb499b41be816be2b47969c551..d90dcfaccb8d31450caebee32dee4b3180995e46 100644 (file)
@@ -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