From afed0f37481a0fbbd10fdc73f7da53fb7abccbe0 Mon Sep 17 00:00:00 2001 From: Go MAEDA Date: Wed, 11 Nov 2020 07:39:59 +0000 Subject: Move the "Private" badge next to the "Open/Closed" badge (#33832). Patch by Go MAEDA. git-svn-id: http://svn.redmine.org/redmine/trunk@20334 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- test/functional/issues_controller_test.rb | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'test') diff --git a/test/functional/issues_controller_test.rb b/test/functional/issues_controller_test.rb index e339ed3d4..07533a854 100644 --- a/test/functional/issues_controller_test.rb +++ b/test/functional/issues_controller_test.rb @@ -3020,6 +3020,14 @@ class IssuesControllerTest < Redmine::ControllerTest assert_select 'span.badge.badge-status-closed', text: 'closed' end + def test_show_should_display_private_badge_for_private_issue + @request.session[:user_id] = 1 + get :show, params: {id: 14} + + assert_response :success + assert_select 'span.badge.badge-private', text: 'Private' + end + def test_get_new @request.session[:user_id] = 2 get( -- cgit v1.2.3