mirror of
https://github.com/maybe-finance/maybe.git
synced 2025-08-04 04:55:20 +02:00
Fix spacing in time series tests
This commit is contained in:
parent
e175aa9b49
commit
3c4bdb6bef
2 changed files with 8 additions and 7 deletions
|
@ -7,6 +7,7 @@ class TimeSeries::TrendTest < ActiveSupport::TestCase
|
|||
assert_equal Money.new(50), trend.value
|
||||
assert_equal 100.0, trend.percent
|
||||
end
|
||||
|
||||
test "up" do
|
||||
trend = TimeSeries::Trend.new(current: 100, previous: 50)
|
||||
assert_equal "up", trend.direction
|
||||
|
@ -39,7 +40,7 @@ class TimeSeries::TrendTest < ActiveSupport::TestCase
|
|||
end
|
||||
|
||||
test "empty" do
|
||||
trend =TimeSeries::Trend.new
|
||||
trend = TimeSeries::Trend.new
|
||||
assert_equal "flat", trend.direction
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue