1
0
Fork 0
mirror of https://github.com/maybe-finance/maybe.git synced 2025-07-24 23:59:40 +02:00
Maybe/test
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
..
channels/application_cable Initial commit 2024-02-02 09:05:04 -06:00
controllers Shared money input should respond to change in currency (#654) 2024-04-20 08:07:06 -04:00
fixtures Multi-Currency Part 2 (#543) 2024-03-21 13:39:10 -04:00
helpers Addd application_helper_test.rb (#302) 2024-02-06 19:51:32 -06:00
integration Initial commit 2024-02-02 09:05:04 -06:00
interfaces Add zero-config self hosting on Render (#612) 2024-04-13 09:28:45 -04:00
jobs Add zero-config self hosting on Render (#612) 2024-04-13 09:28:45 -04:00
lib Shared money input should respond to change in currency (#654) 2024-04-20 08:07:06 -04:00
mailers Initial commit 2024-02-02 09:05:04 -06:00
models Refactor TimeSeries artifacts (#651) 2024-04-22 08:30:42 -04:00
system New Settings Menu, Routes and Controllers Organization (#641) 2024-04-18 07:56:51 -04:00
vcr_cassettes Add zero-config self hosting on Render (#612) 2024-04-13 09:28:45 -04:00
application_system_test_case.rb New Settings Menu, Routes and Controllers Organization (#641) 2024-04-18 07:56:51 -04:00
i18n_test.rb Centralize auth messages (#269) 2024-02-03 14:17:49 -06:00
test_helper.rb New Settings Menu, Routes and Controllers Organization (#641) 2024-04-18 07:56:51 -04:00