Skip to content

Commit aa9bf70

Browse files
authored
Fix ambiguous regex warnings, See #720
1 parent 3333f0a commit aa9bf70

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/utils_test.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -357,11 +357,11 @@ def result(duration, reference = 0)
357357
end
358358

359359
it 'successfully decrypts with the first private key' do
360-
assert_match /\A<saml:Assertion/, RubySaml::Utils.decrypt_multi(encrypted, [private_key])
360+
assert_match %r{\A<saml:Assertion}, RubySaml::Utils.decrypt_multi(encrypted, [private_key])
361361
end
362362

363363
it 'successfully decrypts with a subsequent private key' do
364-
assert_match /\A<saml:Assertion/, RubySaml::Utils.decrypt_multi(encrypted, [invalid_key1, private_key])
364+
assert_match %r{\A<saml:Assertion}, RubySaml::Utils.decrypt_multi(encrypted, [invalid_key1, private_key])
365365
end
366366

367367
it 'raises an error when there is only one key and it fails to decrypt' do

0 commit comments

Comments
 (0)