test for empty string

This commit is contained in:
scossar 2016-03-04 20:20:58 -08:00
parent 2d8b10d139
commit 5b5076c61d

View file

@ -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))