mirror of
https://github.com/discourse/discourse.git
synced 2025-06-01 03:35:15 +08:00
DEV: User email test optimization (#7405)
This commit is contained in:

committed by
Guo Xiang Tan

parent
8c8d3bea31
commit
bf313c1b68
@ -24,7 +24,7 @@ describe UserAnonymizer do
|
||||
|
||||
describe "make_anonymous" do
|
||||
let(:original_email) { "edward@example.net" }
|
||||
let(:user) { Fabricate(:user_single_email, username: "edward", email: original_email) }
|
||||
let(:user) { Fabricate(:user, username: "edward", email: original_email) }
|
||||
let(:another_user) { Fabricate(:evil_trout) }
|
||||
subject(:make_anonymous) { described_class.make_anonymous(user, admin) }
|
||||
|
||||
|
Reference in New Issue
Block a user