Commit 72c4c34

mokha <mokha@cisco.com>
2018-03-06 21:32:08
fix broken specs.
1 parent e00dbdd
Changed files (2)
lib
saml
kit
lib/saml/kit/cli/report.rb
@@ -68,6 +68,7 @@ module Saml
         def build_table_for(document)
           table = []
           document.build_header(table)
+          #document.build_body(table)
           build_body_for(document, table)
           table
         end
lib/saml/kit/core_ext/document.rb
@@ -12,10 +12,6 @@ module Saml
         table.push(['Trusted?', trusted?])
         signature.build_header(table) if signature.present?
       end
-
-      def truncate(text, max: 50)
-        text.length >= max ? "#{text[0..max]}..." : text
-      end
     end
 
     class Metadata
@@ -53,6 +49,12 @@ module Saml
         ])
         table.push(['', certificate.x509.to_text])
       end
+
+      private
+
+      def truncate(text, max: 50)
+        text.length >= max ? "#{text[0..max]}..." : text
+      end
     end
   end
 end