From 5b5076c61d71985cfe478e0daac62bf033e8652a Mon Sep 17 00:00:00 2001 From: scossar Date: Fri, 4 Mar 2016 20:20:58 -0800 Subject: [PATCH] test for empty string --- spec/mailers/user_notifications_spec.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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))