The personal finance app for everyone (by everyone)
Ruby
Update Snaptrade option gain expectations for fees (#4145)
Arnav Joshi2b18df2306d7
diff --git a/test/models/snaptrade_account/activities_processor_test.rb b/test/models/snaptrade_account/activities_processor_test.rbindex 3fa5b80723..e7567f576e 100644--- a/test/models/snaptrade_account/activities_processor_test.rb+++ b/test/models/snaptrade_account/activities_processor_test.rb@@ -1926,9 +1926,9 @@ class SnaptradeAccount::ActivitiesProcessorTest < ActiveSupport::TestCaserh_gain_loss = rh_sell_trade.realized_gain_lossassert_not_nil rh_gain_loss- assert_equal Money.new(7000.0, "USD"), rh_gain_loss.current- assert_equal Money.new(5425.0, "USD"), rh_gain_loss.previous- assert_equal Money.new(1575.0, "USD"), rh_gain_loss.value+ assert_equal Money.new(6999.79, "USD"), rh_gain_loss.current+ assert_equal Money.new(5425.20, "USD"), rh_gain_loss.previous+ assert_equal Money.new(1574.59, "USD"), rh_gain_loss.valueend# Synthetic edge case: option contract EXTERNAL_ASSET_TRANSFER (real JNJ transfer was type=TRANSFER, a cash activity)