summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarkus Roberts <Markus@reality.com>2009-07-27 15:13:12 -0700
committerJames Turnbull <james@lovedthanlost.net>2009-07-31 16:44:02 +1000
commit26b0c70dcd5f6ef8685280dd039dcac96b1307df (patch)
treeac02f21d66f9da28597437ce797964a943a1e853
parent76fc2b177a026e49d8370de2092f77108769110a (diff)
downloadpuppet-26b0c70dcd5f6ef8685280dd039dcac96b1307df.tar.gz
puppet-26b0c70dcd5f6ef8685280dd039dcac96b1307df.tar.xz
puppet-26b0c70dcd5f6ef8685280dd039dcac96b1307df.zip
Fixing typo in two tests which caused them to always pass
-rwxr-xr-xspec/unit/provider/ssh_authorized_key/parsed.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/spec/unit/provider/ssh_authorized_key/parsed.rb b/spec/unit/provider/ssh_authorized_key/parsed.rb
index 18f3be126..0f32a6f12 100755
--- a/spec/unit/provider/ssh_authorized_key/parsed.rb
+++ b/spec/unit/provider/ssh_authorized_key/parsed.rb
@@ -120,7 +120,7 @@ describe provider_class do
end
it "should chmod the key file to 0600" do
- File.chmod(0600, File.expand_path("~nobody/.ssh/authorized_keys"))
+ File.expects(:chmod).with(0600, File.expand_path("~nobody/.ssh/authorized_keys"))
@provider.flush
end
end
@@ -184,7 +184,7 @@ describe provider_class do
end
it "should chmod the key file to 0600" do
- File.chmod(0600, File.expand_path("~nobody/.ssh/authorized_keys"))
+ File.expects(:chmod).with(0600, File.expand_path("~nobody/.ssh/authorized_keys"))
@provider.flush
end
end