diff options
author | Michal Rokos <m.rokos@sh.cvut.cz> | 2002-09-04 10:30:11 +0000 |
---|---|---|
committer | Michal Rokos <m.rokos@sh.cvut.cz> | 2002-09-04 10:30:11 +0000 |
commit | 871d3fb297021cba042602e0c3ba0c1573f9da5e (patch) | |
tree | ca0693c4578f845fc5b5f340558124404e0be21a | |
parent | c6143048bfd382e866a72760dbd2533d5630b011 (diff) | |
download | ruby-openssl-history-871d3fb297021cba042602e0c3ba0c1573f9da5e.tar.gz |
add dup, clone methods to TC
-rwxr-xr-x | test/tc_x509cert.rb | 4 |
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 |