diff options
| author | mokha <mokha@cisco.com> | 2018-03-09 19:11:02 -0700 |
|---|---|---|
| committer | mokha <mokha@cisco.com> | 2018-03-09 19:11:02 -0700 |
| commit | e4c4152a4f011ad180e30e9a8b081b18db46e198 (patch) | |
| tree | 5973347e9cba2321e72759d7d7ba611e4d5aefcd | |
| parent | 5509b796109d3cd11b26f1e29195197530826774 (diff) | |
fix broken test.
| -rw-r--r-- | lib/saml/kit/core_ext/signature.rb | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/lib/saml/kit/core_ext/signature.rb b/lib/saml/kit/core_ext/signature.rb index 889b025..4d73ed8 100644 --- a/lib/saml/kit/core_ext/signature.rb +++ b/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 |
