We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a7c847f commit 600e62fCopy full SHA for 600e62f
1 file changed
test/response_test.rb
@@ -96,7 +96,11 @@ def generate_audience_error(expected, actual)
96
97
it "Raise ValidationError if XML contains SyntaxError trying to initialize and soft = false" do
98
settings.soft = false
99
- error_msg = 'XML load failed: 53:875: FATAL: Opening and ending tag mismatch: X509Certificate line 53 and SignatureValue'
+ error_msg = if jruby?
100
+ 'XML load failed: 53:875: FATAL: Opening and ending tag mismatch: X509Certificate line 53 and SignatureValue'
101
+ else
102
+ 'XML load failed: The element type "ds:X509Certificate" must be terminated by the matching end-tag "</ds:X509Certificate>"'
103
+ end
104
assert_raises(RubySaml::ValidationError, error_msg) do
105
OneLogin::RubySaml::Response.new(fixture(:response_wrong_syntax), :settings => settings)
106
end
0 commit comments