Skip to content

Commit

Permalink
Use assert_valid_http_uri to test correct URI format
Browse files Browse the repository at this point in the history
  • Loading branch information
alisawallace committed Jul 8, 2024
1 parent 89e863a commit 8e47d46
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ def test_key(config, key, type)
# token_endpoint must be output for downstream tests to work
test_key(config, 'token_endpoint', String)
token_endpoint = config['token_endpoint']
assert token_endpoint.match?(URI::DEFAULT_PARSER.make_regexp), "`#{token_endpoint}` is not a valid URI"
assert_valid_http_uri(token_endpoint, "`#{token_endpoint}` is not a valid URI")

output smart_token_url: token_endpoint

Expand Down

0 comments on commit 8e47d46

Please sign in to comment.