spec/lib/xmldsig_spec.rb in xmldsig-0.2.5 vs spec/lib/xmldsig_spec.rb in xmldsig-0.2.6
- old
+ new
@@ -10,11 +10,11 @@
let(:unsigned_xml) { File.read(document) }
let(:unsigned_document) { Xmldsig::SignedDocument.new(unsigned_xml) }
let(:signed_document) { unsigned_document.sign(private_key) }
it "should be signable an validateable" do
- Xmldsig::SignedDocument.new(signed_document).validate(certificate).should be_true
+ Xmldsig::SignedDocument.new(signed_document).validate(certificate).should be == true
end
it 'should have a signature element' do
Xmldsig::SignedDocument.new(signed_document).signatures.count.should == 1
end
@@ -36,10 +36,10 @@
let(:signed_xml) { Base64.decode64(File.read(document)) }
let(:signed_document) { Xmldsig::SignedDocument.new(signed_xml) }
let(:certificate) { OpenSSL::X509::Certificate.new(File.read(document.gsub('.txt', '.cert'))) }
it "should be validateable" do
- signed_document.validate(certificate).should be_true
+ signed_document.validate(certificate).should be == true
end
end
end
end