diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2013-11-20 19:17:20 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2013-11-20 19:17:20 +0000 |
commit | bba304ef390789627052d235c1f2bfd2227e4f2c (patch) | |
tree | 5f3676bb79cb617bc87481cccaf34ac19f87a0ad /test/functional/projects_controller_test.rb | |
parent | 7df9f8d31edb2b8188929afc17555a3bec898ad7 (diff) | |
download | redmine-bba304ef390789627052d235c1f2bfd2227e4f2c.tar.gz redmine-bba304ef390789627052d235c1f2bfd2227e4f2c.zip |
Fixed that the sidebar may be displayed empty (#15414).
git-svn-id: http://svn.redmine.org/redmine/trunk@12310 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'test/functional/projects_controller_test.rb')
-rw-r--r-- | test/functional/projects_controller_test.rb | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/test/functional/projects_controller_test.rb b/test/functional/projects_controller_test.rb index 79721d589..6f294d6d0 100644 --- a/test/functional/projects_controller_test.rb +++ b/test/functional/projects_controller_test.rb @@ -320,6 +320,16 @@ class ProjectsControllerTest < ActionController::TestCase assert_select 'li', :text => /Development status/ end + def test_show_should_not_display_empty_sidebar + p = Project.find(1) + p.enabled_module_names = [] + p.save! + + get :show, :id => 'ecookbook' + assert_response :success + assert_select '#main.nosidebar' + end + def test_show_should_not_display_hidden_custom_fields ProjectCustomField.find_by_name('Development status').update_attribute :visible, false get :show, :id => 'ecookbook' |