diff options
Diffstat (limited to 'test/test_ssl_session.rb')
-rw-r--r-- | test/test_ssl_session.rb | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/test/test_ssl_session.rb b/test/test_ssl_session.rb index 84686f6b..9bcec101 100644 --- a/test/test_ssl_session.rb +++ b/test/test_ssl_session.rb @@ -369,6 +369,12 @@ __EOS__ assert(called[:get1]) assert(called[:get2]) end + + def test_dup + sess_orig = OpenSSL::SSL::Session.new(DUMMY_SESSION) + sess_dup = sess_orig.dup + assert_equal(sess_orig.to_der, sess_dup.to_der) + end end end |