add tests

This commit is contained in:
Reinier Balt 2011-11-25 14:32:07 +01:00
parent 61624ed455
commit 80d8d2b67a
2 changed files with 57 additions and 8 deletions

View file

@ -420,9 +420,7 @@ class StatsController < ApplicationController
@actions_running_time = current_user.todos.not_completed.find(:all, { :select => "id, created_at" })
@selected_todo_ids, @count = get_ids_from(@actions_running_time, week_from, week_to, params['id']=='art_end')
@selected_actions = @actions.find(:all, {
:conditions => "id in (" + @selected_todo_ids + ")"
})
@selected_actions = current_user.todos.find(:all, { :conditions => "id in (" + @selected_todo_ids + ")" })
render :action => "show_selection_from_chart"
else