diff --git a/app/views/admin/groups/show.html.haml b/app/views/admin/groups/show.html.haml
index bec9b0c..56a32db 100644
--- a/app/views/admin/groups/show.html.haml
+++ b/app/views/admin/groups/show.html.haml
@@ -83,7 +83,7 @@
Users from #{@group.name} Group
%small
(#{@group.users_groups.count})
- %ul.well-list
+ %ul.well-list.group-users-list
- @group.users_groups.order('group_access DESC').each do |member|
- user = member.user
%li{class: dom_class(user)}
diff --git a/features/steps/admin/admin_groups.rb b/features/steps/admin/admin_groups.rb
index 2f98b81..c463d37 100644
--- a/features/steps/admin/admin_groups.rb
+++ b/features/steps/admin/admin_groups.rb
@@ -43,13 +43,16 @@ class AdminGroups < Spinach::FeatureSteps
user = User.find_by_name("John")
select2(user.id, from: "#user_ids", multiple: true)
within "#new_team_member" do
- select "Reporter", from: "project_access"
+ select "Reporter", from: "group_access"
end
click_button "Add users into group"
end
Then 'I should see "John" in team list in every project as "Reporter"' do
- user = User.find_by_name("John")
+ within ".group-users-list" do
+ page.should have_content "John"
+ page.should have_content "Reporter"
+ end
end
protected
--
libgit2 0.21.2