From bbe8ea29e8d3e6de60b96c08d60de9447bcceca9 Mon Sep 17 00:00:00 2001 From: Jean-Philippe Lang Date: Wed, 5 Mar 2008 13:44:08 +0000 Subject: Display the last 30 days on the activity view rather than the current month. Number of days can be configured in the application settings. git-svn-id: http://redmine.rubyforge.org/svn/trunk@1196 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- test/functional/projects_controller_test.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'test') diff --git a/test/functional/projects_controller_test.rb b/test/functional/projects_controller_test.rb index 92ac6f09a..f610469df 100644 --- a/test/functional/projects_controller_test.rb +++ b/test/functional/projects_controller_test.rb @@ -130,7 +130,7 @@ class ProjectsControllerTest < Test::Unit::TestCase end def test_activity - get :activity, :id => 1, :year => 2.days.ago.to_date.year, :month => 2.days.ago.to_date.month + get :activity, :id => 1 assert_response :success assert_template 'activity' assert_not_nil assigns(:events_by_day) @@ -146,7 +146,7 @@ class ProjectsControllerTest < Test::Unit::TestCase } } - get :activity, :id => 1, :year => 3.days.ago.to_date.year, :month => 3.days.ago.to_date.month + get :activity, :id => 1, :from => 3.days.ago.to_date assert_response :success assert_template 'activity' assert_not_nil assigns(:events_by_day) -- cgit v1.2.3