mirror of
https://github.com/redmine/redmine.git
synced 2026-07-01 01:37:41 +02:00
Add "last 2 weeks" preset to time entries reporting (#11862).
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@10583 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
@@ -523,6 +523,13 @@ class TimelogControllerTest < ActionController::TestCase
|
||||
assert_equal '2011-12-11'.to_date, assigns(:to)
|
||||
end
|
||||
|
||||
def test_index_last_2_week
|
||||
Date.stubs(:today).returns('2011-12-15'.to_date)
|
||||
get :index, :period => 'last_2_weeks'
|
||||
assert_equal '2011-11-28'.to_date, assigns(:from)
|
||||
assert_equal '2011-12-11'.to_date, assigns(:to)
|
||||
end
|
||||
|
||||
def test_index_7_days
|
||||
Date.stubs(:today).returns('2011-12-15'.to_date)
|
||||
get :index, :period => '7_days'
|
||||
|
||||
Reference in New Issue
Block a user