Skip to content

Commit ec8937a

Browse files
pitbulkbcgraham
authored andcommitted
Fix ambiguous regex warnings, See SAML-Toolkits#720
1 parent a14d845 commit ec8937a

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

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)