add cucumber scenarios for adding multiple next actions

This commit is contained in:
Reinier Balt 2010-07-14 23:34:47 +02:00
parent 4400c42d7c
commit 6e5057138d
3 changed files with 79 additions and 26 deletions

View file

@ -251,11 +251,14 @@ module TodosHelper
return false if source_view_is(:context) && (@todo.project.hidden? || @todo.project.completed?)
end
return false if (source_view_is(:tag) && !@todo.tags.include?(@tag_name))
return true if source_view_is(:deferred) && @todo.deferred?
return true if source_view_is(:project) && @todo.project.hidden? && @todo.project_hidden?
return true if source_view_is(:project) && @todo.deferred?
return true if !source_view_is(:deferred) && @todo.active?
return true if source_view_is(:project) && @todo.pending?
return true if source_view_is(:tag) && @todo.pending?
return false
end