Mercurial > hg > soundsoftware-site
comparison test/functional/calendars_controller_test.rb @ 1517:dffacf8a6908 redmine-2.5
Update to Redmine SVN revision 13367 on 2.5-stable branch
author | Chris Cannam |
---|---|
date | Tue, 09 Sep 2014 09:29:00 +0100 |
parents | e248c7af89ec |
children |
comparison
equal
deleted
inserted
replaced
1516:b450a9d58aed | 1517:dffacf8a6908 |
---|---|
27 :enabled_modules | 27 :enabled_modules |
28 | 28 |
29 def test_show | 29 def test_show |
30 get :show, :project_id => 1 | 30 get :show, :project_id => 1 |
31 assert_response :success | 31 assert_response :success |
32 assert_template 'calendar' | 32 assert_template :partial => '_calendar' |
33 assert_not_nil assigns(:calendar) | 33 assert_not_nil assigns(:calendar) |
34 end | 34 end |
35 | 35 |
36 def test_show_should_run_custom_queries | 36 def test_show_should_run_custom_queries |
37 @query = IssueQuery.create!(:name => 'Calendar', :visibility => IssueQuery::VISIBILITY_PUBLIC) | 37 @query = IssueQuery.create!(:name => 'Calendar', :visibility => IssueQuery::VISIBILITY_PUBLIC) |
41 end | 41 end |
42 | 42 |
43 def test_cross_project_calendar | 43 def test_cross_project_calendar |
44 get :show | 44 get :show |
45 assert_response :success | 45 assert_response :success |
46 assert_template 'calendar' | 46 assert_template :partial => '_calendar' |
47 assert_not_nil assigns(:calendar) | 47 assert_not_nil assigns(:calendar) |
48 end | 48 end |
49 | 49 |
50 def test_week_number_calculation | 50 def test_week_number_calculation |
51 Setting.start_of_week = 7 | 51 Setting.start_of_week = 7 |