summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--spec/mixlib/shellout_spec.rb3
1 files changed, 2 insertions, 1 deletions
diff --git a/spec/mixlib/shellout_spec.rb b/spec/mixlib/shellout_spec.rb
index ed5e30a..da3e543 100644
--- a/spec/mixlib/shellout_spec.rb
+++ b/spec/mixlib/shellout_spec.rb
@@ -1,4 +1,5 @@
require "spec_helper"
+require "etc"
require "logger"
require "timeout"
@@ -1532,7 +1533,7 @@ describe Mixlib::ShellOut do
context "when no user is set" do
it "should run as current user" do
- expect(running_user).to eql(ENV["USER"])
+ expect(running_user).to eql(Etc.getpwuid.name)
end
end