Sha256: 65ff4bad1fcca42b5852a3b256446f6a5960882ae65511cd7a695a9500ceaa3a
Contents?: true
Size: 487 Bytes
Versions: 5
Compression:
Stored size: 487 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
5 entries across 5 versions & 1 rubygems