mirror of
https://github.com/maybe-finance/maybe.git
synced 2025-08-02 20:15:22 +02:00
Account namespace updates: part 5 (valuations) (#901)
* Move Valuation to Account namespace * Move account history to controller * Clean up valuation controller and views * Translations and cleanup * Remove unused scopes and methods * Pass brakeman
This commit is contained in:
parent
0bc0d87768
commit
12380dc8ad
45 changed files with 478 additions and 346 deletions
|
@ -11,11 +11,13 @@ class TimeSeries::TrendTest < ActiveSupport::TestCase
|
|||
test "up" do
|
||||
trend = TimeSeries::Trend.new(current: 100, previous: 50)
|
||||
assert_equal "up", trend.direction
|
||||
assert_equal "#10A861", trend.color
|
||||
end
|
||||
|
||||
test "down" do
|
||||
trend = TimeSeries::Trend.new(current: 50, previous: 100)
|
||||
assert_equal "down", trend.direction
|
||||
assert_equal "#F13636", trend.color
|
||||
end
|
||||
|
||||
test "flat" do
|
||||
|
@ -25,6 +27,7 @@ class TimeSeries::TrendTest < ActiveSupport::TestCase
|
|||
assert_equal "flat", trend1.direction
|
||||
assert_equal "flat", trend2.direction
|
||||
assert_equal "flat", trend3.direction
|
||||
assert_equal "#737373", trend1.color
|
||||
end
|
||||
|
||||
test "infinitely up" do
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue