Skip to content

Commit

Permalink
Fix minitest assert_nil warning (#1070)
Browse files Browse the repository at this point in the history
* Fix minitest assert_nil warning

* Remove empty line

* Fix my stupidity
  • Loading branch information
tonyvince authored Aug 9, 2024
1 parent 6fa40e0 commit 6bca35f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/models/account/holding/syncer_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -103,8 +103,8 @@ def assert_holdings(expected_holdings)

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

Expand Down

0 comments on commit 6bca35f

Please sign in to comment.