mirror of
https://github.com/TracksApp/tracks.git
synced 2025-12-22 18:20:12 +01:00
fix small regressions
This commit is contained in:
parent
7af2211479
commit
bc7bf459db
5 changed files with 8 additions and 8 deletions
|
|
@ -137,7 +137,7 @@ class StatsControllerTest < ActionController::TestCase
|
|||
|
||||
# And the current month should be interpolated
|
||||
fraction = Time.zone.now.day.to_f / Time.zone.now.end_of_month.day.to_f
|
||||
assert_equal (2*fraction+2)/3.0, assigns['interpolated_actions_created_this_month'], "two this month and one in the last two months"
|
||||
assert_equal (2*(1/fraction)+2)/3.0, assigns['interpolated_actions_created_this_month'], "two this month and one in the last two months"
|
||||
assert_equal 2/3.0, assigns['interpolated_actions_done_this_month'], "none this month and one two the last two months"
|
||||
|
||||
# And totals should be calculated
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue