spec/keychain_spec.rb in btcruby-1.6 vs spec/keychain_spec.rb in btcruby-1.7
- old
+ new
@@ -256,6 +256,11 @@
keychain = BTC::Keychain.new(xpub: "xpub661MyMwAqRbcFW31YEwpkMuc5THy2PSt5bDMsktWQcFF8syAmRUapSCGu8ED9W6oDMSgv6Zz8idoc4a6mr8BDzTJY47LJhkJ8UB7WEGuduB")
m0pub = keychain.derived_keychain(0)
m0pub.extended_public_key.must_equal "xpub69H7F5d8KSRgmmdJg2KhpAK8SR3DjMwAdkxj3ZuxV27CprR9LgpeyGmXUbC6wb7ERfvrnKZjXoUmmDznezpbZb7ap6r1D3tgFxHmwMkQTPH"
m0pub.extended_private_key.must_equal nil
end
+ it "should raise the ArgumentError when arguments are not passed" do
+ assert_raises ArgumentError do
+ BTC::Keychain.new
+ end
+ end
end