Commit a6da154ed3b91394d071e903ee578c7ab243afd1

Authored by Dmitriy Zaporozhets
1 parent d28ee0df

Fix group test

Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
app/views/groups/_new_group_member.html.haml
1   -= form_for @users_group, url: group_users_groups_path(@group), html: { class: 'form-horizontal' } do |f|
  1 += form_for @users_group, url: group_users_groups_path(@group), html: { class: 'form-horizontal users-group-form' } do |f|
2 2 %h4.append-bottom-20
3 3 New member(s) for
4 4 %strong #{@group.name}
... ...
features/steps/group/group.rb
... ... @@ -40,7 +40,7 @@ class Groups &lt; Spinach::FeatureSteps
40 40  
41 41 And 'I select user "John" from list with role "Reporter"' do
42 42 user = User.find_by_name("John")
43   - within ".new_users_group" do
  43 + within ".users-group-form" do
44 44 select2(user.id, from: "#user_ids", multiple: true)
45 45 select "Reporter", from: "group_access"
46 46 end
... ...