Commit e841e24

mo <mo.khan@gmail.com>
2018-02-15 22:57:00
fix broken specs.
1 parent 88d5956
Changed files (1)
lib
lib/saml/kit/assertion.rb
@@ -100,8 +100,7 @@ module Saml
               "samlp": ::Saml::Kit::Namespaces::PROTOCOL
             )
             @node = decryptor.decrypt_node(encrypted_assertion)
-            @xml_hash = hash_from(@node)['Response'] || {}
-            @xml_hash['Assertion']
+            (hash_from(@node)['Response'] || {})['Assertion']
           else
             result = @xml_hash.fetch('Assertion', {})
             return result if result.is_a?(Hash)