Sha256: db467aeb8a13291fdca60e4b794856f7952f86b4a5feb07b4e26b7303d1cfaae

Contents?: true

Size: 416 Bytes

Versions: 4

Compression:

Stored size: 416 Bytes

Contents

require 'spec_helper'

module SamlIdp
  describe Fingerprint do
    describe "certificate_digest" do
      let(:cert) { sp_x509_cert }
      let(:fingerprint) { "a2:cb:f6:6b:bc:2a:33:b9:4f:f3:c3:7e:26:a4:21:cd:41:83:ef:26:88:fa:ba:71:37:40:07:3e:d5:76:04:b7" }

      it "returns the fingerprint string" do
        expect(Fingerprint.certificate_digest(cert, :sha256)).to eq(fingerprint)
      end
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
saml_idp-0.16.0 spec/lib/saml_idp/fingerprint_spec.rb
saml_idp-0.15.0 spec/lib/saml_idp/fingerprint_spec.rb
saml_idp-0.14.0 spec/lib/saml_idp/fingerprint_spec.rb
saml_idp-0.12.0 spec/lib/saml_idp/fingerprint_spec.rb