diff options
author | Go MAEDA <maeda@farend.jp> | 2020-11-11 07:39:59 +0000 |
---|---|---|
committer | Go MAEDA <maeda@farend.jp> | 2020-11-11 07:39:59 +0000 |
commit | afed0f37481a0fbbd10fdc73f7da53fb7abccbe0 (patch) | |
tree | fedceba4a28bfa479882172b42a2f263a6673f88 /test | |
parent | e703e3851fe5e715678bc196b53c89e2b41181a0 (diff) | |
download | redmine-afed0f37481a0fbbd10fdc73f7da53fb7abccbe0.tar.gz redmine-afed0f37481a0fbbd10fdc73f7da53fb7abccbe0.zip |
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
Diffstat (limited to 'test')
-rw-r--r-- | test/functional/issues_controller_test.rb | 8 |
1 files changed, 8 insertions, 0 deletions
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( |