mirror of
https://github.com/discourse/discourse.git
synced 2025-05-22 22:43:33 +08:00
use system user helper and constant when it's referred
This commit is contained in:
@ -432,7 +432,7 @@ describe SessionController do
|
||||
end
|
||||
|
||||
context 'do nothing to system username' do
|
||||
let(:user) { User.find(-1) }
|
||||
let(:user) { Discourse.system_user }
|
||||
|
||||
it 'generates no token for system username' do
|
||||
lambda { xhr :post, :forgot_password, login: user.username}.should_not change(EmailToken, :count)
|
||||
|
Reference in New Issue
Block a user