Skip to content

Commit

Permalink
Merge pull request #683 from nobu/fix-test
Browse files Browse the repository at this point in the history
Exact checks with `assert_include`
  • Loading branch information
nobu authored Oct 6, 2023
2 parents 6b3dd6a + 9a6e24d commit 35c090e
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 35c090e

Please sign in to comment.