From 6bca35fa2205a83cae4a064823660ca6f1da9749 Mon Sep 17 00:00:00 2001 From: Tony Vincent Date: Fri, 9 Aug 2024 16:58:01 +0200 Subject: [PATCH] Fix minitest assert_nil warning (#1070) * Fix minitest assert_nil warning * Remove empty line * Fix my stupidity --- test/models/account/holding/syncer_test.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/models/account/holding/syncer_test.rb b/test/models/account/holding/syncer_test.rb index 5eaa45ef..fd917a0d 100644 --- a/test/models/account/holding/syncer_test.rb +++ b/test/models/account/holding/syncer_test.rb @@ -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