Skip to content

Commit c8b7ada

Browse files
committed
Adapt error_msg on forgotten test
1 parent dddb738 commit c8b7ada

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

test/response_test.rb

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,12 @@ def generate_audience_error(expected, actual)
110110
settings.soft = true
111111
settings.idp_cert_fingerprint = ruby_saml_cert_fingerprint
112112
response = OneLogin::RubySaml::Response.new(fixture(:response_wrong_syntax), :settings => settings)
113-
assert_includes response.errors, 'XML load failed: 53:875: FATAL: Opening and ending tag mismatch: X509Certificate line 53 and SignatureValue'
113+
error_msg = if jruby?
114+
'XML load failed: The element type "ds:X509Certificate" must be terminated by the matching end-tag "</ds:X509Certificate>"'
115+
else
116+
'XML load failed: 53:875: FATAL: Opening and ending tag mismatch: X509Certificate line 53 and SignatureValue'
117+
end
118+
assert_includes response.errors, error_msg
114119

115120
refute response.is_valid?
116121

0 commit comments

Comments
 (0)