Skip to content

Commit

Permalink
Exact checks with assert_include
Browse files Browse the repository at this point in the history
  • Loading branch information
nobu committed Oct 6, 2023
1 parent 6b3dd6a commit 9a6e24d
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 9a6e24d

Please sign in to comment.