mirror of
https://github.com/maybe-finance/maybe.git
synced 2025-08-04 21:15:19 +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 Money.new(50), trend.value
|
||||||
assert_equal 100.0, trend.percent
|
assert_equal 100.0, trend.percent
|
||||||
end
|
end
|
||||||
|
|
||||||
test "up" do
|
test "up" do
|
||||||
trend = TimeSeries::Trend.new(current: 100, previous: 50)
|
trend = TimeSeries::Trend.new(current: 100, previous: 50)
|
||||||
assert_equal "up", trend.direction
|
assert_equal "up", trend.direction
|
||||||
|
@ -39,7 +40,7 @@ class TimeSeries::TrendTest < ActiveSupport::TestCase
|
||||||
end
|
end
|
||||||
|
|
||||||
test "empty" do
|
test "empty" do
|
||||||
trend =TimeSeries::Trend.new
|
trend = TimeSeries::Trend.new
|
||||||
assert_equal "flat", trend.direction
|
assert_equal "flat", trend.direction
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue