mirror of
https://github.com/TracksApp/tracks.git
synced 2026-01-06 17:28:50 +01:00
fix failing tests
This commit is contained in:
parent
a5031f2069
commit
acab98d4c7
3 changed files with 11 additions and 19 deletions
|
|
@ -130,7 +130,7 @@ class Project < ActiveRecord::Base
|
|||
def stalled?
|
||||
# Stalled projects are active projects with no active next actions
|
||||
return false if self.completed? || self.hidden?
|
||||
return self.todos.deferred_or_blocked.empty? && self.todos.not_deferred_or_blocked.empty?
|
||||
return self.todos.deferred_or_blocked.empty? && self.todos.active.empty?
|
||||
end
|
||||
|
||||
def shortened_name(length=40)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue