diff options
| author | Paul Berry <paul@puppetlabs.com> | 2010-11-29 14:52:26 -0800 |
|---|---|---|
| committer | Paul Berry <paul@puppetlabs.com> | 2010-11-30 12:03:57 -0800 |
| commit | 3063000155ddc475d1703d10cfc13770f687c3b2 (patch) | |
| tree | 2e362240c15037ddac6e9f5cfbed9dd68b1e0a8d /spec/unit/ssl | |
| parent | 29a68730e4157a780f568529fbf32c9907f48731 (diff) | |
| download | puppet-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-x | spec/unit/ssl/certificate_request_spec.rb | 4 |
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 |
