Skip to content

Commit 6798442

Browse files
committed
Minor change on test
1 parent c8b7ada commit 6798442

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

test/response_test.rb

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -97,9 +97,9 @@ def generate_audience_error(expected, actual)
9797
it 'Raise ValidationError if XML contains SyntaxError trying to initialize and soft = false' do
9898
settings.soft = false
9999
error_msg = if jruby?
100-
'XML load failed: The element type "ds:X509Certificate" must be terminated by the matching end-tag "</ds:X509Certificate>"'
100+
'XML load failed: The element type "ds:X509Certificate" must be terminated by the matching end-tag "</ds:X509Certificate>".'
101101
else
102-
'XML load failed: 53:875: FATAL: Opening and ending tag mismatch: X509Certificate line 53 and SignatureValue'
102+
'XML load failed: 53:875: FATAL: Opening and ending tag mismatch: X509Certificate line 53 and SignatureValue'
103103
end
104104
assert_raises(RubySaml::ValidationError, error_msg) do
105105
OneLogin::RubySaml::Response.new(fixture(:response_wrong_syntax), :settings => settings)
@@ -111,9 +111,9 @@ def generate_audience_error(expected, actual)
111111
settings.idp_cert_fingerprint = ruby_saml_cert_fingerprint
112112
response = OneLogin::RubySaml::Response.new(fixture(:response_wrong_syntax), :settings => settings)
113113
error_msg = if jruby?
114-
'XML load failed: The element type "ds:X509Certificate" must be terminated by the matching end-tag "</ds:X509Certificate>"'
114+
'XML load failed: The element type "ds:X509Certificate" must be terminated by the matching end-tag "</ds:X509Certificate>".'
115115
else
116-
'XML load failed: 53:875: FATAL: Opening and ending tag mismatch: X509Certificate line 53 and SignatureValue'
116+
'XML load failed: 53:875: FATAL: Opening and ending tag mismatch: X509Certificate line 53 and SignatureValue'
117117
end
118118
assert_includes response.errors, error_msg
119119

0 commit comments

Comments
 (0)