spec/lib/xmldsig_spec.rb in xmldsig-0.0.3 vs spec/lib/xmldsig_spec.rb in xmldsig-0.0.4

- old
+ new

@@ -12,9 +12,14 @@ it "should be signable an validateable" do signed_document = unsigned_document.sign(private_key) Xmldsig::SignedDocument.new(signed_document).validate(certificate).should be_true end + + it 'should have a signature element' do + signed_document = unsigned_document.sign(private_key) + Xmldsig::SignedDocument.new(signed_document).signatures.count.should == 1 + end end end end end