Project

General

Profile

Bug #6703 ยป ossl_ext_bug.rb

test case of seeing the case fail - vbatts (Vincent Batts), 07/06/2012 06:27 AM

 
1

    
2
require 'test/unit'
3
require 'openssl'
4

    
5
class TestX509Extension < Test::Unit::TestCase
6
  def test_hurr_ext
7
    OpenSSL::ASN1::ObjectId.register( "1.2.3.4", "hurr", "hurr")
8

    
9
    ef = OpenSSL::X509::ExtensionFactory.new
10
    assert_nothing_raised do
11
      ef.create_extension('hurr','This is a test')
12
    end
13
  end
14
end
15