fix failing tests

This commit is contained in:
Reinier Balt 2013-03-01 14:23:22 +01:00
parent a5031f2069
commit acab98d4c7
3 changed files with 11 additions and 19 deletions

View file

@ -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)