mirror of
https://github.com/codeninjasllc/discourse.git
synced 2024-11-23 15:48:43 -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
|
||||||
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|
|
%w(signup signup_after_approval authorize_email forgot_password admin_login account_created).each do |mail_type|
|
||||||
include_examples "notification derived from template" do
|
include_examples "notification derived from template" do
|
||||||
SiteSetting.default_locale = "en"
|
SiteSetting.default_locale = "en"
|
||||||
let(:locale) { "invalid" }
|
let(:locale) { "" }
|
||||||
let(:mail_type) { mail_type }
|
let(:mail_type) { mail_type }
|
||||||
it "sets the locale" do
|
it "sets the locale" do
|
||||||
expects_build_with(has_entry(:locale, nil))
|
expects_build_with(has_entry(:locale, nil))
|
||||||
|
|
Loading…
Reference in a new issue