aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xtest/tc_x509cert.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/test/tc_x509cert.rb b/test/tc_x509cert.rb
index dfd9b19..62e4a6b 100755
--- a/test/tc_x509cert.rb
+++ b/test/tc_x509cert.rb
@@ -139,6 +139,10 @@ class TC_Certificate < Test::Unit::TestCase
x509 = Certificate::new($x509.to_pem)
assert_equal(txt, x509.to_text, "new instance from PEM")
end
+ def test_12dup
+ assert_equal($x509.to_text, $x509.dup.to_text, "dup")
+ assert_equal($x509.to_text, $x509.clone.to_text, "clone")
+ end
def tear_down
##
# NONE