mirror of
https://github.com/discourse/discourse.git
synced 2025-06-04 23:36:11 +08:00
DEV: Don’t use change { … }.by(0)
in specs
This commit is contained in:

committed by
Loïc Guitaut

parent
3bfc254c4e
commit
91b6b5eee7
@ -154,7 +154,7 @@ RSpec.describe Admin::UsersController do
|
||||
suspend_until: 5.hours.from_now,
|
||||
reason: "because I said so"
|
||||
}
|
||||
end.to change { Jobs::CriticalUserEmail.jobs.size }.by(0)
|
||||
end.not_to change { Jobs::CriticalUserEmail.jobs.size }
|
||||
|
||||
expect(response.status).to eq(200)
|
||||
|
||||
|
Reference in New Issue
Block a user