summaryrefslogtreecommitdiffstats
path: root/spec/unit/ssl
diff options
context:
space:
mode:
authorPaul Berry <paul@puppetlabs.com>2010-11-29 14:52:26 -0800
committerPaul Berry <paul@puppetlabs.com>2010-11-30 12:03:57 -0800
commit3063000155ddc475d1703d10cfc13770f687c3b2 (patch)
tree2e362240c15037ddac6e9f5cfbed9dd68b1e0a8d /spec/unit/ssl
parent29a68730e4157a780f568529fbf32c9907f48731 (diff)
downloadpuppet-3063000155ddc475d1703d10cfc13770f687c3b2.tar.gz
puppet-3063000155ddc475d1703d10cfc13770f687c3b2.tar.xz
puppet-3063000155ddc475d1703d10cfc13770f687c3b2.zip
Maint: Swap the order of arguments to Indirection#save
The first argument was often nil, and the second was mandatory.
Diffstat (limited to 'spec/unit/ssl')
-rwxr-xr-xspec/unit/ssl/certificate_request_spec.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/spec/unit/ssl/certificate_request_spec.rb b/spec/unit/ssl/certificate_request_spec.rb
index 437fc0556..f37f9bae4 100755
--- a/spec/unit/ssl/certificate_request_spec.rb
+++ b/spec/unit/ssl/certificate_request_spec.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(nil, csr)
+ Puppet::SSL::CertificateRequest.indirection.expects(:save).with(csr, nil)
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(nil, csr)
+ Puppet::SSL::CertificateRequest.indirection.expects(:save).with(csr, nil)
csr.save
end