summaryrefslogtreecommitdiff
path: root/test/unit/client_certificate_test.rb
diff options
context:
space:
mode:
Diffstat (limited to 'test/unit/client_certificate_test.rb')
-rw-r--r--test/unit/client_certificate_test.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/unit/client_certificate_test.rb b/test/unit/client_certificate_test.rb
index 036e724..7f7e14b 100644
--- a/test/unit/client_certificate_test.rb
+++ b/test/unit/client_certificate_test.rb
@@ -3,7 +3,7 @@ require 'test_helper'
class ClientCertificateTest < ActiveSupport::TestCase
test "new cert has all we need" do
- sample = ClientCertificate.new
+ sample = ClientCertificate.new(:common_name => 'test')
assert sample.key
assert sample.cert
assert sample.to_s
@@ -16,7 +16,7 @@ class ClientCertificateTest < ActiveSupport::TestCase
end
test "cert issuer matches ca subject" do
- sample = ClientCertificate.new
+ sample = ClientCertificate.new(:prefix => 'test')
cert = OpenSSL::X509::Certificate.new(sample.cert.to_pem)
assert_equal ClientCertificate.root_ca.openssl_body.subject, cert.issuer
end