Commit 2864aca4 authored by Dmitriy Zaporozhets's avatar Dmitriy Zaporozhets

Fix admin:groups test

parent f47ba909
...@@ -83,7 +83,7 @@ ...@@ -83,7 +83,7 @@
Users from #{@group.name} Group Users from #{@group.name} Group
%small %small
(#{@group.users_groups.count}) (#{@group.users_groups.count})
%ul.well-list %ul.well-list.group-users-list
- @group.users_groups.order('group_access DESC').each do |member| - @group.users_groups.order('group_access DESC').each do |member|
- user = member.user - user = member.user
%li{class: dom_class(user)} %li{class: dom_class(user)}
......
...@@ -43,13 +43,16 @@ class AdminGroups < Spinach::FeatureSteps ...@@ -43,13 +43,16 @@ class AdminGroups < Spinach::FeatureSteps
user = User.find_by_name("John") user = User.find_by_name("John")
select2(user.id, from: "#user_ids", multiple: true) select2(user.id, from: "#user_ids", multiple: true)
within "#new_team_member" do within "#new_team_member" do
select "Reporter", from: "project_access" select "Reporter", from: "group_access"
end end
click_button "Add users into group" click_button "Add users into group"
end end
Then 'I should see "John" in team list in every project as "Reporter"' do 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 end
protected protected
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment