test/commands/test_pay.rb in zold-0.5 vs test/commands/test_pay.rb in zold-0.6

- old
+ new

@@ -37,13 +37,15 @@ wallets = Zold::Wallets.new(dir) source = wallets.find(id) source.init(id, Zold::Key.new(file: 'fixtures/id_rsa.pub')) target = Zold::Id.new amount = Zold::Amount.new(zld: 14.95) - Zold::Pay.new( - wallets: wallets, - pvtkey: Zold::Key.new(file: 'fixtures/id_rsa') - ).run(['--force', id.to_s, target.to_s, amount.to_zld, 'For the car']) - assert_equal(amount.mul(-1), source.balance) + Zold::Pay.new(wallets: wallets).run( + [ + '--force', '--private-key=fixtures/id_rsa', + id.to_s, target.to_s, amount.to_zld, 'For the car' + ] + ) + assert_equal(amount * -1, source.balance) end end end