Sha256: 2dfa266f157288506657a938b2ab538a4d5d379cc1d33a528f62e7a56e2d766f

Contents?: true

Size: 490 Bytes

Versions: 4

Compression:

Stored size: 490 Bytes

Contents

require "spec_helper"

describe Xmlenc::Builder::DigestMethod do

  let(:xml) { File.read File.join("spec", "fixtures", "template2.xml") }
  subject { described_class.parse(xml, :single => true) }

  describe "#parse" do
    it "should have one algorithm" do
      expect(subject.algorithm).to eq "http://www.w3.org/2000/09/xmldsig#sha1"
    end

    it "raises error when no algorithm" do
      subject.algorithm = nil
      expect(subject).to have(1).error_on :algorithm
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
xmlenc-0.2.1 spec/lib/xmlenc/builder/digest_method_spec.rb
xmlenc-0.2.0 spec/lib/xmlenc/builder/digest_method_spec.rb
xmlenc-0.1.7 spec/lib/xmlenc/builder/digest_method_spec.rb
xmlenc-0.1.6 spec/lib/xmlenc/builder/digest_method_spec.rb