Skip to content

Commit

Permalink
Exact checks with assert_include
Browse files Browse the repository at this point in the history
[ This is a backport to the 3.2 branch. ]

(cherry picked from commit 9a6e24d)
  • Loading branch information
nobu authored and rhenium committed May 6, 2024
1 parent a8ef534 commit 4adc0cb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/openssl/test_x509ext.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 4adc0cb

Please sign in to comment.