mirror of
https://github.com/codeninjasllc/discourse.git
synced 2024-11-23 23:58:31 -05:00
test for empty string
This commit is contained in:
parent
2d8b10d139
commit
5b5076c61d
1 changed files with 2 additions and 2 deletions
|
@ -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))
|
||||
|
|
Loading…
Reference in a new issue