mirror of
https://github.com/discourse/discourse.git
synced 2025-02-21 14:34:59 +08:00
DEV: Fix flaky users_email_controller_spec test case (#30318)
This should be the last fallout from changing hide_email_address_taken default. 🤞
This commit is contained in:
parent
d56346982f
commit
f9e07ff9d2
@ -208,6 +208,8 @@ RSpec.describe UsersEmailController do
|
||||
fab!(:other_user) { Fabricate(:user, email: "case.insensitive@gmail.com") }
|
||||
|
||||
context "when hiding taken e-mails" do
|
||||
before { SiteSetting.hide_email_address_taken = true }
|
||||
|
||||
it "raises an error" do
|
||||
put "/u/#{user.username}/preferences/email.json",
|
||||
params: {
|
||||
|
Loading…
x
Reference in New Issue
Block a user