Skip to content

Commit

Permalink
Fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Piotr Stachyra committed Oct 15, 2020
1 parent 115ab99 commit 6e6c9f3
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions spec/utils_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand All @@ -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",
Expand All @@ -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
Expand Down

0 comments on commit 6e6c9f3

Please sign in to comment.