summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLamont Granquist <lamont@scriptkiddie.org>2014-10-24 19:04:51 -0700
committerLamont Granquist <lamont@scriptkiddie.org>2014-10-24 19:04:51 -0700
commiteab0fe62c048834f556492bf180cb78afcf06194 (patch)
treebf7b5b51fc9b84429fa390565e9a6d481897c04d
parenta754c1379286242d2204cbfffeb84396e1a0527e (diff)
downloadchef-lcg/rspec3-updates.tar.gz
fix more solaris provider lolwutlcg/rspec3-updates
-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 ab9055bbd2..ef62fd1d5a 100644
--- a/spec/unit/provider/user/solaris_spec.rb
+++ b/spec/unit/provider/user/solaris_spec.rb
@@ -51,8 +51,6 @@ describe Chef::Provider::User::Solaris do
@new_resource.password "hocus-pocus"
- # Let these tests run #write_shadow_file
- allow(provider).to receive(:write_shadow_file).and_call_original
end
it "should use its own shadow file writer to set the password" do
@@ -62,6 +60,8 @@ describe Chef::Provider::User::Solaris do
end
it "should write out a modified version of the password file" do
+ # Let this test run #write_shadow_file
+ allow(provider).to receive(:write_shadow_file).and_call_original
password_file = Tempfile.new("shadow")
password_file.puts "adam:existingpassword:15441::::::"
password_file.close