mirror of
https://github.com/discourse/discourse.git
synced 2025-05-24 14:12:10 +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:
@ -275,7 +275,7 @@ RSpec.describe Admin::UsersController do
|
|||||||
context "when logged in as an admin" do
|
context "when logged in as an admin" do
|
||||||
before { sign_in(admin) }
|
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
|
it "checks if user is suspended" do
|
||||||
put "/admin/users/#{user.id}/suspend.json", params: {
|
put "/admin/users/#{user.id}/suspend.json", params: {
|
||||||
|
Reference in New Issue
Block a user