summaryrefslogtreecommitdiff
path: root/spec/unit/mixin/shell_out_spec.rb
diff options
context:
space:
mode:
Diffstat (limited to 'spec/unit/mixin/shell_out_spec.rb')
-rw-r--r--spec/unit/mixin/shell_out_spec.rb14
1 files changed, 7 insertions, 7 deletions
diff --git a/spec/unit/mixin/shell_out_spec.rb b/spec/unit/mixin/shell_out_spec.rb
index 5880aa2b6a..2b76a10e6c 100644
--- a/spec/unit/mixin/shell_out_spec.rb
+++ b/spec/unit/mixin/shell_out_spec.rb
@@ -21,7 +21,7 @@
#
require "spec_helper"
-require "chef/mixin/path_sanity"
+require "chef/mixin/default_paths"
describe Chef::Mixin::ShellOut do
let(:shell_out_class) { Class.new { include Chef::Mixin::ShellOut } }
@@ -74,7 +74,7 @@ describe Chef::Mixin::ShellOut do
"LC_ALL" => Chef::Config[:internal_locale],
"LANG" => Chef::Config[:internal_locale],
"LANGUAGE" => Chef::Config[:internal_locale],
- env_path => shell_out_obj.sanitized_path,
+ env_path => shell_out_obj.default_paths,
}).and_return(retobj)
shell_out_obj.send(method, cmd, **options)
end
@@ -87,7 +87,7 @@ describe Chef::Mixin::ShellOut do
"LC_ALL" => Chef::Config[:internal_locale],
"LANG" => Chef::Config[:internal_locale],
"LANGUAGE" => Chef::Config[:internal_locale],
- env_path => shell_out_obj.sanitized_path,
+ env_path => shell_out_obj.default_paths,
}).and_return(retobj)
shell_out_obj.send(method, cmd, **options)
expect(options[:environment].key?("LC_ALL")).to be false
@@ -115,7 +115,7 @@ describe Chef::Mixin::ShellOut do
"LC_ALL" => Chef::Config[:internal_locale],
"LANG" => Chef::Config[:internal_locale],
"LANGUAGE" => Chef::Config[:internal_locale],
- env_path => shell_out_obj.sanitized_path,
+ env_path => shell_out_obj.default_paths,
}).and_return(retobj)
shell_out_obj.send(method, cmd, **options)
end
@@ -128,7 +128,7 @@ describe Chef::Mixin::ShellOut do
"LC_ALL" => Chef::Config[:internal_locale],
"LANG" => Chef::Config[:internal_locale],
"LANGUAGE" => Chef::Config[:internal_locale],
- env_path => shell_out_obj.sanitized_path,
+ env_path => shell_out_obj.default_paths,
}).and_return(retobj)
shell_out_obj.send(method, cmd, **options)
expect(options[:env].key?("LC_ALL")).to be false
@@ -144,7 +144,7 @@ describe Chef::Mixin::ShellOut do
"LC_ALL" => Chef::Config[:internal_locale],
"LANG" => Chef::Config[:internal_locale],
"LANGUAGE" => Chef::Config[:internal_locale],
- env_path => shell_out_obj.sanitized_path,
+ env_path => shell_out_obj.default_paths,
}).and_return(retobj)
shell_out_obj.send(method, cmd, **options)
end
@@ -158,7 +158,7 @@ describe Chef::Mixin::ShellOut do
"LC_ALL" => Chef::Config[:internal_locale],
"LANG" => Chef::Config[:internal_locale],
"LANGUAGE" => Chef::Config[:internal_locale],
- env_path => shell_out_obj.sanitized_path,
+ env_path => shell_out_obj.default_paths,
}).and_return(retobj)
shell_out_obj.send(method, cmd)
end