@@ -518,13 +518,6 class TimelogControllerTest < ActionController::TestCase | |||||
518 |
|
518 | |||
519 | def test_index_last_week |
|
519 | def test_index_last_week | |
520 | Date.stubs(:today).returns('2011-12-15'.to_date) |
|
520 | Date.stubs(:today).returns('2011-12-15'.to_date) | |
521 | get :index, :period => 'current_week' |
|
|||
522 | assert_equal '2011-12-05'.to_date, assigns(:from) |
|
|||
523 | assert_equal '2011-12-11'.to_date, assigns(:to) |
|
|||
524 | end |
|
|||
525 |
|
||||
526 | def test_index_last_week |
|
|||
527 | Date.stubs(:today).returns('2011-12-15'.to_date) |
|
|||
528 | get :index, :period => 'last_week' |
|
521 | get :index, :period => 'last_week' | |
529 | assert_equal '2011-12-05'.to_date, assigns(:from) |
|
522 | assert_equal '2011-12-05'.to_date, assigns(:from) | |
530 | assert_equal '2011-12-11'.to_date, assigns(:to) |
|
523 | assert_equal '2011-12-11'.to_date, assigns(:to) |
General Comments 0
You need to be logged in to leave comments.
Login now