diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2013-02-02 13:18:04 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2013-02-02 13:18:04 +0000 |
commit | 9536d04c1e0a8aee94d71392c6e92fd577685e70 (patch) | |
tree | f823354b415a1b927ed12f4c85bfda33e661bc58 /test | |
parent | 5fea79504c7483ce589d2f91adf05760e1ba156f (diff) | |
download | redmine-9536d04c1e0a8aee94d71392c6e92fd577685e70.tar.gz redmine-9536d04c1e0a8aee94d71392c6e92fd577685e70.zip |
Typo that triggers an error when editing a subproject (#5605).
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@11301 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'test')
-rw-r--r-- | test/functional/projects_controller_test.rb | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/test/functional/projects_controller_test.rb b/test/functional/projects_controller_test.rb index 3927e41b0..be5c67e48 100644 --- a/test/functional/projects_controller_test.rb +++ b/test/functional/projects_controller_test.rb @@ -392,6 +392,13 @@ class ProjectsControllerTest < ActionController::TestCase assert_template 'settings' end + def test_settings_of_subproject + @request.session[:user_id] = 2 + get :settings, :id => 'private-child' + assert_response :success + assert_template 'settings' + end + def test_settings_should_be_denied_for_member_on_closed_project Project.find(1).close @request.session[:user_id] = 2 # manager |