DEV: Properly include spec examples (#19532)

It was redefining rather than including them. It was causing this warning:

```
WARNING: Shared example group suspension of active user possible was defined without a block and will have no effect. Please define a block or remove the definition
```
This commit is contained in:
Jarek Radosz 2022-12-20 22:28:03 +01:00 committed by GitHub
parent 552edc8a5b
commit e775ed1c36
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -275,7 +275,7 @@ RSpec.describe Admin::UsersController do
context "when logged in as an admin" do
before { sign_in(admin) }
shared_examples "suspension of active user possible"
include_examples "suspension of active user possible"
it "checks if user is suspended" do
put "/admin/users/#{user.id}/suspend.json", params: {