Commit e4c4152

mokha <mokha@cisco.com>
2018-03-10 02:11:02
fix broken test.
1 parent 5509b79
Changed files (1)
lib
saml
kit
lib/saml/kit/core_ext/signature.rb
@@ -5,7 +5,7 @@ module Saml
         'Digest Value' => ->(x) { x.digest_value },
         'Expected Digest Value' => ->(x) { x.expected_digest_value },
         'Digest Method' => ->(x) { x.digest_method },
-        'Signature Value' => ->(x) { x.truncate(signature_value) },
+        'Signature Value' => ->(x) { x.truncate(x.signature_value) },
         'Signature Method' => ->(x) { x.signature_method },
         'Canonicalization Method' => ->(x) { x.canonicalization_method },
       }.freeze
@@ -18,8 +18,6 @@ module Saml
         table.push(['', certificate.x509.to_text])
       end
 
-      private
-
       def truncate(text, max: 50)
         text.length >= max ? "#{text[0..max]}..." : text
       end