test/ruby-saml_test.rb in ruby-saml-0.4.3 vs test/ruby-saml_test.rb in ruby-saml-0.4.4
- old
+ new
@@ -36,11 +36,11 @@
response = Onelogin::Saml::Response.new(response_document_2)
assert !response.name_id.nil?
response = Onelogin::Saml::Response.new(response_document_3)
assert !response.name_id.nil?
end
-
+
should "check time conditions" do
response = Onelogin::Saml::Response.new(response_document)
assert !response.check_conditions
response = Onelogin::Saml::Response.new(response_document_5)
assert response.check_conditions
@@ -108,9 +108,14 @@
end
should "work for implicit namespaces" do
response = Onelogin::Saml::Response.new(response_document_3)
assert_equal "someone@example.com", response.attributes["http://schemas.xmlsoap.org/ws/2005/05/identity/claims/emailaddress"]
+ end
+
+ should "not raise on responses without attributes" do
+ response = Onelogin::Saml::Response.new(response_document_4)
+ assert_equal Hash.new, response.attributes
end
end
context "#session_expires_at" do
should "extract the value of the SessionNotOnOrAfter attribute" do