diff options
author | Marius Balteanu <marius.balteanu@zitec.com> | 2021-08-11 20:37:13 +0000 |
---|---|---|
committer | Marius Balteanu <marius.balteanu@zitec.com> | 2021-08-11 20:37:13 +0000 |
commit | 8094f413c0e336ab388791af2a13dd7635e3a75f (patch) | |
tree | 4291eb5d6b770cae18bef86aa3432bf5aee462dc /test | |
parent | 99837b32533c53725f8dcc4b504424160aec935c (diff) | |
download | redmine-8094f413c0e336ab388791af2a13dd7635e3a75f.tar.gz redmine-8094f413c0e336ab388791af2a13dd7635e3a75f.zip |
Merged r21152 to 4.1-stable (#35634).
git-svn-id: http://svn.redmine.org/redmine/branches/4.1-stable@21155 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'test')
-rw-r--r-- | test/functional/issues_controller_test.rb | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/test/functional/issues_controller_test.rb b/test/functional/issues_controller_test.rb index 2e663c1c3..42c3b53c4 100644 --- a/test/functional/issues_controller_test.rb +++ b/test/functional/issues_controller_test.rb @@ -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 |