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:
Ted Johansson
2024-12-17 18:20:01 +08:00
committed by GitHub
parent d56346982f
commit f9e07ff9d2

View File

@@ -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: {