summaryrefslogtreecommitdiffstats
path: root/spec/unit/ssl/certificate_request.rb
diff options
context:
space:
mode:
authorJesse Wolfe <jes5199@gmail.com>2010-03-29 17:10:40 -0700
committertest branch <puppet-dev@googlegroups.com>2010-02-17 06:50:53 -0800
commit23ccefe0e8b51af19a0283c0d8eb3de09b6e4c31 (patch)
treef5a13141985b8956987b0aad3f84269be7902243 /spec/unit/ssl/certificate_request.rb
parentd8e1b272ec321d5f86558672252de60983751a15 (diff)
downloadpuppet-23ccefe0e8b51af19a0283c0d8eb3de09b6e4c31.tar.gz
puppet-23ccefe0e8b51af19a0283c0d8eb3de09b6e4c31.tar.xz
puppet-23ccefe0e8b51af19a0283c0d8eb3de09b6e4c31.zip
REST: hide Request object
This change to the REST branch restores some sanity by explicitly allowing a destination URL for indirector save() calls, removing a hack that I was using to accomplish this.
Diffstat (limited to 'spec/unit/ssl/certificate_request.rb')
-rwxr-xr-xspec/unit/ssl/certificate_request.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/spec/unit/ssl/certificate_request.rb b/spec/unit/ssl/certificate_request.rb
index a4eee92d6..63bc9f110 100755
--- a/spec/unit/ssl/certificate_request.rb
+++ b/spec/unit/ssl/certificate_request.rb
@@ -200,7 +200,7 @@ describe Puppet::SSL::CertificateRequest do
Puppet::SSL::CertificateAuthority.expects(:instance).returns ca
csr = Puppet::SSL::CertificateRequest.new("me")
- Puppet::SSL::CertificateRequest.indirection.expects(:save).with(csr)
+ Puppet::SSL::CertificateRequest.indirection.expects(:save).with(nil, csr)
csr.save
end
@@ -211,7 +211,7 @@ describe Puppet::SSL::CertificateRequest do
Puppet::SSL::CertificateAuthority.expects(:instance).returns nil
csr = Puppet::SSL::CertificateRequest.new("me")
- Puppet::SSL::CertificateRequest.indirection.expects(:save).with(csr)
+ Puppet::SSL::CertificateRequest.indirection.expects(:save).with(nil, csr)
csr.save
end