Fix leave_group_spec.rb

Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
This commit is contained in:
Dmitriy Zaporozhets 2017-06-26 16:51:05 +02:00
parent a67ff8e883
commit 69043814b4
No known key found for this signature in database
GPG key ID: 627C5F589F467F17

View file

@ -18,7 +18,7 @@ feature 'Groups > Members > Leave group', feature: true do
expect(current_path).to eq(dashboard_groups_path) expect(current_path).to eq(dashboard_groups_path)
expect(page).to have_content left_group_message(group) expect(page).to have_content left_group_message(group)
expect(group.members).not_to include(user) expect(group.users).not_to include(user)
end end
scenario 'guest leaves the group as last member' do scenario 'guest leaves the group as last member' do
@ -29,7 +29,7 @@ feature 'Groups > Members > Leave group', feature: true do
expect(current_path).to eq(dashboard_groups_path) expect(current_path).to eq(dashboard_groups_path)
expect(page).to have_content left_group_message(group) expect(page).to have_content left_group_message(group)
expect(group.members).not_to include(user) expect(group.users).not_to include(user)
end end
scenario 'owner leaves the group if they is not the last owner' do scenario 'owner leaves the group if they is not the last owner' do
@ -41,7 +41,7 @@ feature 'Groups > Members > Leave group', feature: true do
expect(current_path).to eq(dashboard_groups_path) expect(current_path).to eq(dashboard_groups_path)
expect(page).to have_content left_group_message(group) expect(page).to have_content left_group_message(group)
expect(group.members).not_to include(user) expect(group.users).not_to include(user)
end end
scenario 'owner can not leave the group if they is a last owner' do scenario 'owner can not leave the group if they is a last owner' do