1
0
Fork 0
mirror of https://github.com/maybe-finance/maybe.git synced 2025-07-25 08:09:38 +02:00

Fix minitest assert_nil warning (#1070)

* Fix minitest assert_nil warning

* Remove empty line

* Fix my stupidity
This commit is contained in:
Tony Vincent 2024-08-09 16:58:01 +02:00 committed by GitHub
parent 6fa40e0fa2
commit 6bca35fa22
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -103,8 +103,8 @@ class Account::Holding::SyncerTest < ActiveSupport::TestCase
assert actual_holding, "expected #{ticker} holding on date: #{date}"
assert_equal expected_holding[:qty], actual_holding.qty, "expected #{expected_qty} qty for holding #{ticker} on date: #{date}"
assert_equal expected_holding[:amount], actual_holding.amount, "expected #{expected_amount} amount for holding #{ticker} on date: #{date}"
assert_equal expected_holding[:price], actual_holding.price, "expected #{expected_price} price for holding #{ticker} on date: #{date}"
assert_equal expected_holding[:amount].to_d, actual_holding.amount.to_d, "expected #{expected_amount} amount for holding #{ticker} on date: #{date}"
assert_equal expected_holding[:price].to_d, actual_holding.price.to_d, "expected #{expected_price} price for holding #{ticker} on date: #{date}"
end
end