aboutsummaryrefslogtreecommitdiff
path: root/spec/unit/parser/functions
diff options
context:
space:
mode:
authormh <mh@immerda.ch>2012-06-08 13:17:23 -0300
committermh <mh@immerda.ch>2012-06-08 13:17:23 -0300
commit8aab254eaa3c4fa99110b33c5064707e7a5bce6c (patch)
treeae4236291dfae65a39d99d3ef7b911dcb22c9ce4 /spec/unit/parser/functions
parent8d0127b219afd864c857409d572537cf3247d9dc (diff)
downloadpuppet-sshd-8aab254eaa3c4fa99110b33c5064707e7a5bce6c.tar.gz
puppet-sshd-8aab254eaa3c4fa99110b33c5064707e7a5bce6c.tar.bz2
recmkdir is gone
Diffstat (limited to 'spec/unit/parser/functions')
-rw-r--r--spec/unit/parser/functions/ssh_keygen.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/spec/unit/parser/functions/ssh_keygen.rb b/spec/unit/parser/functions/ssh_keygen.rb
index f830065..da45779 100644
--- a/spec/unit/parser/functions/ssh_keygen.rb
+++ b/spec/unit/parser/functions/ssh_keygen.rb
@@ -74,7 +74,7 @@ describe "the ssh_keygen function" do
File.stubs(:exists?).with("/tmp/a/b/c").returns(false)
File.stubs(:exists?).with("/tmp/a/b/c.pub").returns(false)
File.stubs(:directory?).with("/tmp/a/b").returns(false)
- Puppet::Util.expects(:recmkdir).with("/tmp/a/b",0700)
+ FileUtils.expects(:mkdir_p).with("/tmp/a/b", :mode => 0700)
Puppet::Util.expects(:execute).returns("")
result = @scope.function_ssh_keygen('/tmp/a/b/c')
result.length.should == 2