diff options
Diffstat (limited to 'spec/support/shared_examples/controllers/concerns/onboarding')
-rw-r--r-- | spec/support/shared_examples/controllers/concerns/onboarding/redirectable_shared_examples.rb | 8 |
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 |