Sha256: ed5df13cf3fbc0e6b004240845c9f3c487e1f226c0f2a4af3bc3a9a4d9d03618

Contents?: true

Size: 887 Bytes

Versions: 2

Compression:

Stored size: 887 Bytes

Contents

# coding: utf-8
# frozen_string_literal: true

################################################
# © Alexander Semyonov, 2011—2013, MIT License #
# Author: Alexander Semyonov <al@semyonov.us>  #
################################################

require 'spec_helper'

describe Xommelier::DS::Signature do
  it { is_expected.to respond_to(:signed_info) }
  it { is_expected.to respond_to(:signature_value) }
  it { is_expected.to respond_to(:key_info) }

  describe '(signature-example-rsa.xml)' do
    let(:ds_rsa_xml) { load_xml_file('ds_rsa') }
    subject(:ds_rsa) { described_class.parse(ds_rsa_xml) }

    describe described_class do
      its(:signed_info) { should be_present }
      its(:signature_value) { should be_present }
      its(:key_info) { should be_present }
    end

    describe :signed_info do
      subject(:signed_info) { ds_rsa.signed_info }
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
xommelier-0.1.34 spec/lib/xommelier/ds/signature_spec.rb
xommelier-0.1.33 spec/lib/xommelier/ds/signature_spec.rb