diff options
author | Lamont Granquist <lamont@scriptkiddie.org> | 2018-05-10 10:12:22 -0700 |
---|---|---|
committer | Lamont Granquist <lamont@scriptkiddie.org> | 2018-05-10 10:12:22 -0700 |
commit | 9b6f0ab4d80d17bfced33fb2ea034a2804189b3b (patch) | |
tree | 2eb16f2efbab51332a2a9f055a20ced9a5ff516f /spec/unit | |
parent | 96c519ef6ee88d2adc4d4a35a080400b6a4f3659 (diff) | |
download | chef-9b6f0ab4d80d17bfced33fb2ea034a2804189b3b.tar.gz |
clean up solaris provider
Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
Diffstat (limited to 'spec/unit')
-rw-r--r-- | spec/unit/provider/user/solaris_spec.rb | 4 |
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") |