summaryrefslogtreecommitdiffstats
path: root/test/functional/projects_controller_test.rb
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2016-12-31 13:33:02 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2016-12-31 13:33:02 +0000
commit514d9bad9efd584d9dd70aca2b1c27128c2f0eca (patch)
treef7e88d67054fa130b3849222c68102ca6c4934d9 /test/functional/projects_controller_test.rb
parentf2bf5aa25c482eb48d24135a19cb6f4455bf263f (diff)
downloadredmine-514d9bad9efd584d9dd70aca2b1c27128c2f0eca.tar.gz
redmine-514d9bad9efd584d9dd70aca2b1c27128c2f0eca.zip
Fixed that project settings should show locked members (#22034).
git-svn-id: http://svn.redmine.org/redmine/trunk@16116 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'test/functional/projects_controller_test.rb')
-rw-r--r--test/functional/projects_controller_test.rb12
1 files changed, 12 insertions, 0 deletions
diff --git a/test/functional/projects_controller_test.rb b/test/functional/projects_controller_test.rb
index 01c68308f..da2818174 100644
--- a/test/functional/projects_controller_test.rb
+++ b/test/functional/projects_controller_test.rb
@@ -527,6 +527,18 @@ class ProjectsControllerTest < Redmine::ControllerTest
assert_select 'a#tab-versions[href=?]', '/projects/ecookbook/settings/versions?version_name=.1&version_status='
end
+ def test_settings_should_show_locked_members
+ user = User.generate!
+ member = User.add_to_project(user, Project.find(1))
+ user.lock!
+ assert user.reload.locked?
+ @request.session[:user_id] = 2
+
+ get :settings, :id => 'ecookbook', :tab => 'members'
+ assert_response :success
+ assert_select "tr#member-#{member.id}"
+ end
+
def test_update
@request.session[:user_id] = 2 # manager
post :update, :id => 1, :project => {:name => 'Test changed name',