diff options
author | Go MAEDA <maeda@farend.jp> | 2019-04-27 03:31:22 +0000 |
---|---|---|
committer | Go MAEDA <maeda@farend.jp> | 2019-04-27 03:31:22 +0000 |
commit | 5e64b4aa67b78fce43f25f8740ca55318612b134 (patch) | |
tree | 3c2b8ca66c99d7bc536879db983c46bad8a0d67f /test/functional/wiki_controller_test.rb | |
parent | 40dd389fdcdf63785139bf5426451e041b7d7851 (diff) | |
download | redmine-5e64b4aa67b78fce43f25f8740ca55318612b134.tar.gz redmine-5e64b4aa67b78fce43f25f8740ca55318612b134.zip |
Show locked badge for protected pages (#9634).
Patch by Marius BALTEANU.
git-svn-id: http://svn.redmine.org/redmine/trunk@18085 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'test/functional/wiki_controller_test.rb')
-rw-r--r-- | test/functional/wiki_controller_test.rb | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/test/functional/wiki_controller_test.rb b/test/functional/wiki_controller_test.rb index b416f8a01..c3d7563ab 100644 --- a/test/functional/wiki_controller_test.rb +++ b/test/functional/wiki_controller_test.rb @@ -176,6 +176,16 @@ class WikiControllerTest < Redmine::ControllerTest assert_select 'textarea[name=?]', 'content[text]' end + def test_show_protected_page_shoud_show_locked_badge + @request.session[:user_id] = 2 + + get :show, :params => {:project_id => 1, :id => 'CookBook_documentation'} + + assert_select 'p.wiki-update-info' do + assert_select 'span.badge.badge-status-locked' + end + end + def test_get_new @request.session[:user_id] = 2 |