Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGitLab Bot <gitlab-bot@gitlab.com>2023-12-19 14:01:45 +0300
committerGitLab Bot <gitlab-bot@gitlab.com>2023-12-19 14:01:45 +0300
commit9297025d0b7ddf095eb618dfaaab2ff8f2018d8b (patch)
tree865198c01d1824a9b098127baa3ab980c9cd2c06 /spec/support/shared_examples/controllers/concerns/onboarding/redirectable_shared_examples.rb
parent6372471f43ee03c05a7c1f8b0c6ac6b8a7431dbe (diff)
Add latest changes from gitlab-org/gitlab@16-7-stable-eev16.7.0-rc42
Diffstat (limited to 'spec/support/shared_examples/controllers/concerns/onboarding/redirectable_shared_examples.rb')
-rw-r--r--spec/support/shared_examples/controllers/concerns/onboarding/redirectable_shared_examples.rb8
1 files changed, 4 insertions, 4 deletions
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