diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2008-03-05 13:44:08 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2008-03-05 13:44:08 +0000 |
commit | bbe8ea29e8d3e6de60b96c08d60de9447bcceca9 (patch) | |
tree | 759b4deb14fe8c0476e042f18168f912cf461377 /test/functional/projects_controller_test.rb | |
parent | fbcdfee622729792ab58648228209bbd3c2142b6 (diff) | |
download | redmine-bbe8ea29e8d3e6de60b96c08d60de9447bcceca9.tar.gz redmine-bbe8ea29e8d3e6de60b96c08d60de9447bcceca9.zip |
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
Diffstat (limited to 'test/functional/projects_controller_test.rb')
-rw-r--r-- | test/functional/projects_controller_test.rb | 4 |
1 files changed, 2 insertions, 2 deletions
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) |