diff --git a/spec/mailers/user_notifications_spec.rb b/spec/mailers/user_notifications_spec.rb index 076a60154..a30929097 100644 --- a/spec/mailers/user_notifications_spec.rb +++ b/spec/mailers/user_notifications_spec.rb @@ -430,11 +430,11 @@ describe UserNotifications do end end - context "user locale is not a valid locale" do + context "user locale is an empty string" do %w(signup signup_after_approval authorize_email forgot_password admin_login account_created).each do |mail_type| include_examples "notification derived from template" do SiteSetting.default_locale = "en" - let(:locale) { "invalid" } + let(:locale) { "" } let(:mail_type) { mail_type } it "sets the locale" do expects_build_with(has_entry(:locale, nil))