From 6cc9a0bb499f2784fd727f80e39bb239b5aec744 Mon Sep 17 00:00:00 2001 From: Tobias Kneuker Date: Wed, 5 Oct 2022 15:40:14 +0200 Subject: [PATCH] move test to refactoring branch --- spec/controllers/home_controller_spec.rb | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/spec/controllers/home_controller_spec.rb b/spec/controllers/home_controller_spec.rb index beb556e0..54a97e28 100644 --- a/spec/controllers/home_controller_spec.rb +++ b/spec/controllers/home_controller_spec.rb @@ -184,16 +184,6 @@ describe HomeController, type: :controller do expect(response).to redirect_to(my_profile_path) expect(flash[:notice]).to match(/#{I18n.t('home.ordergroup_cancelled', :group => membership.group.name)}/) end - - it 'removes user membership' do - membership = fin_user.memberships.first - get :cancel_membership, - params: { foodcoop: FoodsoftConfig[:default_scope], - membership_id: membership.id } - expect(response).to have_http_status(:redirect) - expect(response).to redirect_to(my_profile_path) - expect(flash[:notice]).to match(/#{I18n.t('home.ordergroup_cancelled', :group => membership.group.name)}/) - end end end end