mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06: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:
@@ -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: {
|
||||
|
||||
Reference in New Issue
Block a user