mirror of
https://github.com/discourse/discourse.git
synced 2025-03-03 21:24:00 +08:00
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:
parent
552edc8a5b
commit
e775ed1c36
@ -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: {
|
||||
|
Loading…
x
Reference in New Issue
Block a user