spec/bitcoin/protocol/tx_spec.rb in bitcoin-ruby-0.0.12 vs spec/bitcoin/protocol/tx_spec.rb in bitcoin-ruby-0.0.13
- old
+ new
@@ -314,9 +314,12 @@
outpoint_tx = Tx.new( fixtures_file('rawtx-0437cd7f8525ceed2324359c2d0ba26006d92d856a9c20fa0241106ee5a597c9.bin') )
outpoint_tx.hash.should == "0437cd7f8525ceed2324359c2d0ba26006d92d856a9c20fa0241106ee5a597c9"
tx.verify_input_signature(0, outpoint_tx).should == true
+ # Only one test where we provide the TxOut is needed since when providing
+ # the full outpoint_tx the verification logic doesn't change.
+ tx.verify_input_signature(0, outpoint_tx.out[0]).should == true
tx = Tx.from_json( fixtures_file('rawtx-c99c49da4c38af669dea436d3e73780dfdb6c1ecf9958baa52960e8baee30e73.json') )
tx.hash.should == 'c99c49da4c38af669dea436d3e73780dfdb6c1ecf9958baa52960e8baee30e73'
outpoint_tx = Tx.from_json( fixtures_file('rawtx-406b2b06bcd34d3c8733e6b79f7a394c8a431fbf4ff5ac705c93f4076bb77602.json') )