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