Method: TC_TSIK#test_BadXPath2

Defined in:
ext/xmlsig/t/tc_tsik.rb

#test_BadXPath2Object



348
349
350
351
352
353
354
355
356
# File 'ext/xmlsig/t/tc_tsik.rb', line 348

def test_BadXPath2
    ### TSIK XmlSigTest.testBadXPath2
    signer = sign1('in.xml', privateKey(), publicKey(), NIL)
    xpath = Xmlsig::XPath.new('here()')
    signer.addReference(xpath)
    d = sign2(signer, '/', NIL)
    rescue
    assert_equal(true, d.nil?)
end