diff --git a/test/openssl/test_x509ext.rb b/test/openssl/test_x509ext.rb index 838780d32..2ff28507e 100644 --- a/test/openssl/test_x509ext.rb +++ b/test/openssl/test_x509ext.rb @@ -66,8 +66,8 @@ def test_create_by_factory cp = ef.create_extension("certificatePolicies", "@certPolicies") assert_equal(false, cp.critical?) assert_equal("certificatePolicies", cp.oid) - assert_match(%r{2.23.140.1.2.1}, cp.value) - assert_match(%r{http://cps.example.com}, cp.value) + assert_include(cp.value, "2.23.140.1.2.1") + assert_include(cp.value, "http://cps.example.com") end def test_factory_create_extension_sn_ln