mirror of
https://github.com/TracksApp/tracks.git
synced 2026-01-22 16:56:10 +01:00
fix regressions and use timecop to fix time in tests. Thanks Dan and Hans!
This commit is contained in:
parent
0d169c4a97
commit
e59fa387fa
7 changed files with 78 additions and 79 deletions
|
|
@ -10,7 +10,7 @@ class DoneTodos
|
|||
end
|
||||
|
||||
def self.done_this_week(todos, includes = {:include => Todo::DEFAULT_INCLUDES})
|
||||
done_between(todos, Time.zone.now.beginning_of_day, Time.zone.now.beginning_of_week)
|
||||
done_between(todos, includes, Time.zone.now.beginning_of_day, Time.zone.now.beginning_of_week)
|
||||
end
|
||||
|
||||
def self.done_this_month(todos, includes = {:include => Todo::DEFAULT_INCLUDES})
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue