diff options
Diffstat (limited to 'spec/functional')
-rw-r--r-- | spec/functional/win32/security_spec.rb | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/spec/functional/win32/security_spec.rb b/spec/functional/win32/security_spec.rb index 5ef1f250ea..a1cd70328d 100644 --- a/spec/functional/win32/security_spec.rb +++ b/spec/functional/win32/security_spec.rb @@ -34,10 +34,7 @@ describe "Chef::Win32::Security", :windows_only do let(:password) { "Security@123" } let(:domain) do - whoami = Mixlib::ShellOut.new("whoami") - whoami.run_command - whoami.error! - whoami.stdout.split("\\")[0] + ENV['COMPUTERNAME'] end before do |