summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2017-06-26 16:51:05 +0200
committerDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2017-06-26 16:51:05 +0200
commit69043814b40fb1203e77c75b4bb082dd67501222 (patch)
treeee18a6550e8abb33b4af8b98fb0577423a28685d
parenta67ff8e8835e3594783de0d198f5dcce24145c6d (diff)
downloadgitlab-ce-69043814b40fb1203e77c75b4bb082dd67501222.tar.gz
Fix leave_group_spec.rb
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
-rw-r--r--spec/features/groups/members/leave_group_spec.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/spec/features/groups/members/leave_group_spec.rb b/spec/features/groups/members/leave_group_spec.rb
index 5b812891281..b438f57753c 100644
--- a/spec/features/groups/members/leave_group_spec.rb
+++ b/spec/features/groups/members/leave_group_spec.rb
@@ -18,7 +18,7 @@ feature 'Groups > Members > Leave group', feature: true do
expect(current_path).to eq(dashboard_groups_path)
expect(page).to have_content left_group_message(group)
- expect(group.members).not_to include(user)
+ expect(group.users).not_to include(user)
end
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(page).to have_content left_group_message(group)
- expect(group.members).not_to include(user)
+ expect(group.users).not_to include(user)
end
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(page).to have_content left_group_message(group)
- expect(group.members).not_to include(user)
+ expect(group.users).not_to include(user)
end
scenario 'owner can not leave the group if they is a last owner' do