diff options
author | Kapil Chouhan <kapil.chouhan@msystechnologies.com> | 2020-04-10 09:07:08 +0000 |
---|---|---|
committer | Kapil Chouhan <kapil.chouhan@msystechnologies.com> | 2020-04-22 09:31:20 +0000 |
commit | be1191b72d72887713048538e72a11b3940c6eb8 (patch) | |
tree | a564a3b23051a1f8a2573e94a7ce4334477ad23d /spec/functional | |
parent | 16b6db24f54f4fa015b4939880a04abb9a8c256b (diff) | |
download | chef-be1191b72d72887713048538e72a11b3940c6eb8.tar.gz |
Update the locale resource to support WindowsKapil/GitHub-9450_Update_the_locale_resource_to_support_Windows
Signed-off-by: Kapil Chouhan <kapil.chouhan@msystechnologies.com>
Diffstat (limited to 'spec/functional')
-rw-r--r-- | spec/functional/resource/locale_spec.rb | 14 |
1 files changed, 12 insertions, 2 deletions
diff --git a/spec/functional/resource/locale_spec.rb b/spec/functional/resource/locale_spec.rb index 29cd01ad78..24a43ef0ba 100644 --- a/spec/functional/resource/locale_spec.rb +++ b/spec/functional/resource/locale_spec.rb @@ -74,8 +74,7 @@ describe Chef::Resource::Locale, :requires_root do resource.lang resource.lc_env resource.run_action(:update) - unsets_system_locale("LANG=en_US", "LC_TIME=en_IN") - sets_system_locale("") + expect(resource).not_to be_updated_by_last_action end end end @@ -94,4 +93,15 @@ describe Chef::Resource::Locale, :requires_root do expect { resource.run_action(:update) }.to raise_error(Chef::Exceptions::ProviderNotFound) end end + + context "on windows", :windows_only, requires_root: false do + describe "action: update" do + context "Sets system locale" do + it "when lang is given" do + resource.lang("en-US") + resource.run_action(:update) + end + end + end + end end |