From 9297025d0b7ddf095eb618dfaaab2ff8f2018d8b Mon Sep 17 00:00:00 2001 From: GitLab Bot Date: Tue, 19 Dec 2023 11:01:45 +0000 Subject: Add latest changes from gitlab-org/gitlab@16-7-stable-ee --- .../concerns/onboarding/redirectable_shared_examples.rb | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'spec/support/shared_examples/controllers/concerns/onboarding/redirectable_shared_examples.rb') diff --git a/spec/support/shared_examples/controllers/concerns/onboarding/redirectable_shared_examples.rb b/spec/support/shared_examples/controllers/concerns/onboarding/redirectable_shared_examples.rb index b448ea16128..efb05709924 100644 --- a/spec/support/shared_examples/controllers/concerns/onboarding/redirectable_shared_examples.rb +++ b/spec/support/shared_examples/controllers/concerns/onboarding/redirectable_shared_examples.rb @@ -6,20 +6,20 @@ RSpec.shared_examples Onboarding::Redirectable do context 'when the new user already has any accepted group membership' do let!(:single_member) { create(:group_member, invite_email: email) } - it 'redirects to activity group path with a flash message' do + it 'redirects to the group path with a flash message' do post_create - expect(response).to redirect_to activity_group_path(single_member.source) + expect(response).to redirect_to group_path(single_member.source) expect(controller).to set_flash[:notice].to(/You have been granted/) end context 'when the new user already has more than 1 accepted group membership' do let!(:last_member) { create(:group_member, invite_email: email) } - it 'redirects to the last member activity group path without a flash message' do + it 'redirects to the last member group path without a flash message' do post_create - expect(response).to redirect_to activity_group_path(last_member.source) + expect(response).to redirect_to group_path(last_member.source) expect(controller).not_to set_flash[:notice].to(/You have been granted/) end end -- cgit v1.2.3