From 6e6c9f3a93fdfb236bde7f7b1d31e36b89fdc98f Mon Sep 17 00:00:00 2001 From: Piotr Stachyra Date: Thu, 15 Oct 2020 17:55:29 +0200 Subject: [PATCH] Fix tests --- spec/utils_spec.rb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/spec/utils_spec.rb b/spec/utils_spec.rb index de5e959..0c2c154 100644 --- a/spec/utils_spec.rb +++ b/spec/utils_spec.rb @@ -11,7 +11,7 @@ end it "format_payments" do - payments = CardanoWallet::Utils.format_payments({a1: 1, a2: 2}) + payments = CardanoWallet::Utils.format_payments([{a1: 1}, {a2: 2}]) payments_expected = [ {:address => "a1", @@ -25,7 +25,7 @@ ] expect(payments).to eq payments_expected - payments = CardanoWallet::Utils.format_payments({a1: 1}) + payments = CardanoWallet::Utils.format_payments([{a1: 1}]) payments_expected = [ {:address => "a1", @@ -36,7 +36,7 @@ expect(payments).to eq payments_expected expect{ CardanoWallet::Utils.format_payments("BadArg") }.to raise_error ArgumentError, - "argument should be Hash" + "argument should be Array" end # it "test minUtxoValue" do