1
0
Fork 0
mirror of https://github.com/maybe-finance/maybe.git synced 2025-07-24 15:49:39 +02:00
Maybe/test/models
Jose Farias fc3ade392a
Refactor TimeSeries artifacts (#651)
* Reindent TimeSeries classes

* Fix spacing in time series tests

* Remove trend tests where current is nil

I think if we've gotten this far with a nil value for current, there's a data integrity problem.

If we allow this, we'll have to be very defensive in our code. Best to raise and fix early.

* Reindent Money class

* Refactor TimeSeries artifacts

* Use as_json in TimeSeries

* Bring back tests for trends where current is nil

* Bring back trend test

* Correctly enumerate trend test

* Use favorable_direction for trend_styles helper

* Make trend public in TimeSeries::Value

* Allow nil current values in trends

I think I might've gotten it wrong before, nils might appear in trends if values are unavailable for snapshots

* Clean up TimeSeries::Trend

* Skip trend values same class validations if any values are nil

* Refactor Money

* Remove object parsing in TimeSeries::Value

We're only every passing hashes
2024-04-22 08:30:42 -04:00
..
account Multi-Currency Part 2 (#543) 2024-03-21 13:39:10 -04:00
provider Add zero-config self hosting on Render (#612) 2024-04-13 09:28:45 -04:00
time_series Refactor TimeSeries artifacts (#651) 2024-04-22 08:30:42 -04:00
transaction Add backend support for transaction categories (#524) 2024-03-07 13:15:50 -05:00
.keep Initial commit 2024-02-02 09:05:04 -06:00
account_balance_test.rb Multi-Currency Part 2 (#543) 2024-03-21 13:39:10 -04:00
account_test.rb Isolate infinite loop bug, add timeout to actions (#583) 2024-03-29 12:53:08 -04:00
current_test.rb Prepare fixture data for account sync tests (#493) 2024-02-27 12:43:49 -05:00
exchange_rate_test.rb Implement Synth as an exchange rate provider (#574) 2024-03-27 11:16:00 -04:00
family_test.rb Multi-Currency Part 2 (#543) 2024-03-21 13:39:10 -04:00
invite_code_test.rb Use consistent language for invite codes 2024-02-02 19:37:10 -06:00
time_series_test.rb Refactor TimeSeries artifacts (#651) 2024-04-22 08:30:42 -04:00
transaction_test.rb Prepare fixture data for account sync tests (#493) 2024-02-27 12:43:49 -05:00
upgrader_test.rb Add zero-config self hosting on Render (#612) 2024-04-13 09:28:45 -04:00
user_test.rb Prepare fixture data for account sync tests (#493) 2024-02-27 12:43:49 -05:00
valuation_test.rb Prepare fixture data for account sync tests (#493) 2024-02-27 12:43:49 -05:00
value_group_test.rb Multi-Currency Part 2 (#543) 2024-03-21 13:39:10 -04:00