@@ -26,13 +26,20 class CalendarsControllerTest < ActionController::TestCase | |||
|
26 | 26 | :members, |
|
27 | 27 | :enabled_modules |
|
28 | 28 | |
|
29 |
def test_ |
|
|
29 | def test_show | |
|
30 | 30 | get :show, :project_id => 1 |
|
31 | 31 | assert_response :success |
|
32 | 32 | assert_template 'calendar' |
|
33 | 33 | assert_not_nil assigns(:calendar) |
|
34 | 34 | end |
|
35 | 35 | |
|
36 | def test_show_should_run_custom_queries | |
|
37 | @query = IssueQuery.create!(:name => 'Calendar', :is_public => true) | |
|
38 | ||
|
39 | get :show, :query_id => @query.id | |
|
40 | assert_response :success | |
|
41 | end | |
|
42 | ||
|
36 | 43 | def test_cross_project_calendar |
|
37 | 44 | get :show |
|
38 | 45 | assert_response :success |
@@ -40,16 +47,6 class CalendarsControllerTest < ActionController::TestCase | |||
|
40 | 47 | assert_not_nil assigns(:calendar) |
|
41 | 48 | end |
|
42 | 49 | |
|
43 | context "GET :show" do | |
|
44 | should "run custom queries" do | |
|
45 | @query = IssueQuery.create!(:name => 'Calendar', :is_public => true) | |
|
46 | ||
|
47 | get :show, :query_id => @query.id | |
|
48 | assert_response :success | |
|
49 | end | |
|
50 | ||
|
51 | end | |
|
52 | ||
|
53 | 50 | def test_week_number_calculation |
|
54 | 51 | Setting.start_of_week = 7 |
|
55 | 52 |
General Comments 0
You need to be logged in to leave comments.
Login now