diff options
author | Lance Albertson <lance@osuosl.org> | 2020-09-24 10:41:50 -0700 |
---|---|---|
committer | Lance Albertson <lance@osuosl.org> | 2020-09-24 10:41:50 -0700 |
commit | ad81bbdf02eaeadf63c3089bff4ebb6a56a383fa (patch) | |
tree | 115c0419a99f878934a312b6c922905977fdbc15 /chef-config/spec | |
parent | c62cd7a4806aeeb64cb98dde3a5081567350f4ba (diff) | |
download | chef-ad81bbdf02eaeadf63c3089bff4ebb6a56a383fa.tar.gz |
Use ChefUtils::Dist::Infra::PRODUCT for locale warning instead of "Chef"
Signed-off-by: Lance Albertson <lance@osuosl.org>
Diffstat (limited to 'chef-config/spec')
-rw-r--r-- | chef-config/spec/unit/config_spec.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/chef-config/spec/unit/config_spec.rb b/chef-config/spec/unit/config_spec.rb index 3ecf240158..3d7365927d 100644 --- a/chef-config/spec/unit/config_spec.rb +++ b/chef-config/spec/unit/config_spec.rb @@ -931,7 +931,7 @@ RSpec.describe ChefConfig::Config do shared_examples_for "a suitable locale" do it "returns an English UTF-8 locale" do - expect(ChefConfig.logger).to_not receive(:warn).with(/Please install an English UTF-8 locale for Chef to use/) + expect(ChefConfig.logger).to_not receive(:warn).with(/Please install an English UTF-8 locale for Chef Infra Client to use/) expect(ChefConfig.logger).to_not receive(:trace).with(/Defaulting to locale en_US.UTF-8 on Windows/) expect(ChefConfig.logger).to_not receive(:trace).with(/No usable locale -a command found/) expect(ChefConfig::Config.guess_internal_locale).to eq expected_locale @@ -984,7 +984,7 @@ RSpec.describe ChefConfig::Config do let(:locale_array) { ["af_ZA", "af_ZA.ISO8859-1", "af_ZA.ISO8859-15", "af_ZA.UTF-8"] } it "should fall back to C locale" do - expect(ChefConfig.logger).to receive(:warn).with("Please install an English UTF-8 locale for Chef to use, falling back to C locale and disabling UTF-8 support.") + expect(ChefConfig.logger).to receive(:warn).with("Please install an English UTF-8 locale for Chef Infra Client to use, falling back to C locale and disabling UTF-8 support.") expect(ChefConfig::Config.guess_internal_locale).to eq "C" end end |