summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--app/views/groups/_memberships.html.erb2
-rw-r--r--test/functional/groups_controller_test.rb7
2 files changed, 6 insertions, 3 deletions
diff --git a/app/views/groups/_memberships.html.erb b/app/views/groups/_memberships.html.erb
index 8880c12a0..b21958e28 100644
--- a/app/views/groups/_memberships.html.erb
+++ b/app/views/groups/_memberships.html.erb
@@ -13,7 +13,7 @@
<% @group.memberships.each do |membership| %>
<% next if membership.new_record? %>
<tr id="member-<%= membership.id %>" class="<%= cycle 'odd', 'even' %> class">
- <td class="project"><%=h membership.project %></td>
+ <td class="project"><%= link_to_project membership.project %></td>
<td class="roles">
<span id="member-<%= membership.id %>-roles"><%=h membership.roles.sort.collect(&:to_s).join(', ') %></span>
<%= form_for(:membership, :remote => true,
diff --git a/test/functional/groups_controller_test.rb b/test/functional/groups_controller_test.rb
index d3428a130..03a5c4229 100644
--- a/test/functional/groups_controller_test.rb
+++ b/test/functional/groups_controller_test.rb
@@ -79,8 +79,11 @@ class GroupsControllerTest < ActionController::TestCase
get :edit, :id => 10
assert_response :success
assert_template 'edit'
- assert_tag 'div', :attributes => {:id => 'tab-content-users'}
- assert_tag 'div', :attributes => {:id => 'tab-content-memberships'}
+
+ assert_select 'div#tab-content-users'
+ assert_select 'div#tab-content-memberships' do
+ assert_select 'a', :text => 'Private child of eCookbook'
+ end
end
def test_update