1
0
Fork 0
mirror of https://github.com/maybe-finance/maybe.git synced 2025-07-24 15:49:39 +02:00

Preserve original transaction names when enriching (#1556)
Some checks are pending
Publish Docker image / ci (push) Waiting to run
Publish Docker image / Build docker image (push) Blocked by required conditions

* Preserve original transaction name

* Remove stale method

* Fix tests
This commit is contained in:
Zach Gollwitzer 2024-12-19 10:16:09 -05:00 committed by GitHub
parent 68617514b0
commit 7be6a372bf
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
22 changed files with 100 additions and 76 deletions

View file

@ -23,7 +23,7 @@ class TradesTest < ApplicationSystemTestCase
end
test "can create buy transaction" do
shares_qty = 25.0
shares_qty = 25
open_new_trade_modal
@ -38,7 +38,7 @@ class TradesTest < ApplicationSystemTestCase
visit_account_trades
within_trades do
assert_text "Buy 10.0 shares of AAPL"
assert_text "Purchase 10 shares of AAPL"
assert_text "Buy #{shares_qty} shares of AAPL"
end
end
@ -60,7 +60,7 @@ class TradesTest < ApplicationSystemTestCase
visit_account_trades
within_trades do
assert_text "Sell #{aapl.qty} shares of AAPL"
assert_text "Sell #{aapl.qty.round} shares of AAPL"
end
end