mirror of
https://github.com/redmine/redmine.git
synced 2025-11-12 16:26:03 +01:00
Show projects using a table instead of an unordered list in the user profile page (#31066).
Patch by Takenori TAKAKI. git-svn-id: http://svn.redmine.org/redmine/trunk@18012 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
@@ -173,8 +173,20 @@ class UsersControllerTest < Redmine::ControllerTest
|
||||
get :show, :params => {:id => 2}
|
||||
assert_response :success
|
||||
|
||||
# membership of private project admin can see
|
||||
assert_select 'li a', :text => "OnlineStore"
|
||||
assert_select 'table.list.projects>tbody' do
|
||||
assert_select 'tr:nth-of-type(1)' do
|
||||
assert_select 'td:nth-of-type(1)>span>a', :text => 'eCookbook'
|
||||
assert_select 'td:nth-of-type(2)', :text => 'Manager'
|
||||
end
|
||||
assert_select 'tr:nth-of-type(2)' do
|
||||
assert_select 'td:nth-of-type(1)>span>a', :text => 'Private child of eCookbook'
|
||||
assert_select 'td:nth-of-type(2)', :text => 'Manager'
|
||||
end
|
||||
assert_select 'tr:nth-of-type(3)' do
|
||||
assert_select 'td:nth-of-type(1)>span>a', :text => 'OnlineStore'
|
||||
assert_select 'td:nth-of-type(2)', :text => 'Developer'
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
def test_show_current_should_require_authentication
|
||||
|
||||
Reference in New Issue
Block a user