mirror of
https://github.com/redmine/redmine.git
synced 2025-11-02 11:25:55 +01:00
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
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user