summaryrefslogtreecommitdiff
path: root/spec/unit/provider/user
diff options
context:
space:
mode:
authorLamont Granquist <lamont@scriptkiddie.org>2018-05-21 09:21:51 -0700
committerGitHub <noreply@github.com>2018-05-21 09:21:51 -0700
commitffbfdc336fbb18e08eed958fcb300e69164b01e2 (patch)
tree16be148618e6f70668ed9c8b65f8e1279868b0da /spec/unit/provider/user
parentd2cd93486f8183a96d83024d8c2e9d8b0b5088b6 (diff)
parentb3a1cc9165904e6be09b8a62065e9289a905bfb4 (diff)
downloadchef-ffbfdc336fbb18e08eed958fcb300e69164b01e2.tar.gz
Merge pull request #7249 from chef/lcg/cleanup-user
Cleanup AIX and Solaris user resources.
Diffstat (limited to 'spec/unit/provider/user')
-rw-r--r--spec/unit/provider/user/solaris_spec.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/spec/unit/provider/user/solaris_spec.rb b/spec/unit/provider/user/solaris_spec.rb
index 1935336308..ecc85677e7 100644
--- a/spec/unit/provider/user/solaris_spec.rb
+++ b/spec/unit/provider/user/solaris_spec.rb
@@ -2,7 +2,7 @@
# Author:: Adam Jacob (<adam@chef.io>)
# Author:: Daniel DeLeo (<dan@chef.io>)
# Author:: Dave Eddy (<dave@daveeddy.com>)
-# Copyright:: Copyright 2008-2016, Chef Software Inc.
+# Copyright:: Copyright 2008-2018, Chef Software Inc.
# Copyright:: Copyright 2015-2016, Dave Eddy
#
# License:: Apache License, Version 2.0
@@ -68,7 +68,7 @@ describe Chef::Provider::User::Solaris do
password_file = Tempfile.new("shadow")
password_file.puts "adam:existingpassword:15441::::::"
password_file.close
- provider.password_file = password_file.path
+ stub_const("Chef::Provider::User::Solaris::PASSWORD_FILE", password_file.path)
allow(provider).to receive(:shell_out!).and_return(true)
# may not be able to write to /etc for tests...
temp_file = Tempfile.new("shadow")