summaryrefslogtreecommitdiffstats
path: root/spec
diff options
context:
space:
mode:
authorJames Turnbull <james@lovedthanlost.net>2009-05-30 10:39:10 +1000
committerJames Turnbull <james@lovedthanlost.net>2009-05-30 10:39:10 +1000
commit3af2dbf32e4d74d5027b936ed652d488ecd7881f (patch)
tree4f01720f0fb21d21e20d22190a0ff89e993e0241 /spec
parent62534a1622c710eb52b681d96aca8687c597190c (diff)
JRuby OpenSSL implementation is more strict than real ruby one and
requires certificate serial number to be strictly positive.
Diffstat (limited to 'spec')
-rwxr-xr-xspec/unit/ssl/certificate_authority.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/spec/unit/ssl/certificate_authority.rb b/spec/unit/ssl/certificate_authority.rb
index e007df25b..fb30cb027 100755
--- a/spec/unit/ssl/certificate_authority.rb
+++ b/spec/unit/ssl/certificate_authority.rb
@@ -264,8 +264,8 @@ describe Puppet::SSL::CertificateAuthority do
Puppet.settings.stubs(:readwritelock).with(:serial).yields @filehandle
end
- it "should default to 0x0 for the first serial number" do
- @ca.next_serial.should == 0x0
+ it "should default to 0x1 for the first serial number" do
+ @ca.next_serial.should == 0x1
end
it "should return the current content of the serial file" do
@@ -276,7 +276,7 @@ describe Puppet::SSL::CertificateAuthority do
end
it "should write the next serial number to the serial file as hex" do
- @filehandle.expects(:<<).with("0001")
+ @filehandle.expects(:<<).with("0002")
@ca.next_serial
end