summaryrefslogtreecommitdiff
path: root/certs/test/unit/client_certificate_test.rb
diff options
context:
space:
mode:
Diffstat (limited to 'certs/test/unit/client_certificate_test.rb')
-rw-r--r--certs/test/unit/client_certificate_test.rb18
1 files changed, 4 insertions, 14 deletions
diff --git a/certs/test/unit/client_certificate_test.rb b/certs/test/unit/client_certificate_test.rb
index 7dbb8a9..492a44a 100644
--- a/certs/test/unit/client_certificate_test.rb
+++ b/certs/test/unit/client_certificate_test.rb
@@ -3,22 +3,12 @@ require 'test_helper'
class ClientCertificateTest < ActiveSupport::TestCase
setup do
- @sample = ClientCertificate.new ClientCertificate.valid_attributes_hash
+ @sample = ClientCertificate.new
end
- test "stub cert for testing is valid" do
- assert @sample.valid?
+ test "new cert has all we need" do
+ assert @sample.key
+ assert @sample.cert
end
- test "validates key" do
- @sample.key = nil
- assert @sample.valid?
- assert @sample.key, "Cert should generate key"
- end
-
- test "validates cert" do
- @sample.cert = nil
- assert @sample.valid?
- assert @sample.cert, "Cert should generate cert"
- end
end