File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -156,7 +156,7 @@ class RequestTest < Test::Unit::TestCase
156156 settings . idp_sso_target_url = "http://example.com"
157157 settings . authn_context = 'secure/name/password/uri'
158158 auth_doc = OneLogin ::RubySaml ::Authrequest . new . create_authentication_xml_doc ( settings )
159- assert auth_doc . to_s =~ /<samlp:RequestedAuthnContext Comparison='exact'/
159+ assert auth_doc . to_s =~ /<samlp:RequestedAuthnContext[ \S ]+ Comparison='exact'/
160160 assert auth_doc . to_s =~ /<saml:AuthnContextClassRef[\S ]+>secure\/ name\/ password\/ uri<\/ saml:AuthnContextClassRef>/
161161 end
162162
@@ -166,7 +166,7 @@ class RequestTest < Test::Unit::TestCase
166166 settings . authn_context = 'secure/name/password/uri'
167167 settings . authn_context_comparison = 'minimun'
168168 auth_doc = OneLogin ::RubySaml ::Authrequest . new . create_authentication_xml_doc ( settings )
169- assert auth_doc . to_s =~ /<samlp:RequestedAuthnContext Comparison='minimun'/
169+ assert auth_doc . to_s =~ /<samlp:RequestedAuthnContext[ \S ]+ Comparison='minimun'/
170170 assert auth_doc . to_s =~ /<saml:AuthnContextClassRef[\S ]+>secure\/ name\/ password\/ uri<\/ saml:AuthnContextClassRef>/
171171 end
172172
You can’t perform that action at this time.
0 commit comments