move test to refactoring branch
Some checks failed
continuous-integration/drone/push Build is failing

This commit is contained in:
Tobias Kneuker 2022-10-05 15:40:14 +02:00
parent decfba13ec
commit 6cc9a0bb49

View file

@ -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