mirror of
https://github.com/openSUSE/osem.git
synced 2026-08-13 19:54:02 +00:00
remove user deletion until further notice
This commit is contained in:
parent
bca62e6204
commit
80fbc144ac
4 changed files with 1 additions and 42 deletions
|
|
@ -36,19 +36,4 @@ describe Admin::UsersController do
|
|||
end
|
||||
end
|
||||
end
|
||||
describe 'DELETE #destroy' do
|
||||
before :each do
|
||||
@user = create(:user)
|
||||
end
|
||||
context 'valid attributes' do
|
||||
it 'it deletes the contact' do
|
||||
expect { delete :destroy, id: @user.id }.to change(User, :count).by(-1)
|
||||
end
|
||||
it 'redirects to users#index' do
|
||||
delete :destroy, id: @user
|
||||
expect(response).to redirect_to admin_users_path
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
end
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue