diff options
Diffstat (limited to 'test/functional/calendars_controller_test.rb')
-rw-r--r-- | test/functional/calendars_controller_test.rb | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/test/functional/calendars_controller_test.rb b/test/functional/calendars_controller_test.rb index becf11945..453e51e23 100644 --- a/test/functional/calendars_controller_test.rb +++ b/test/functional/calendars_controller_test.rb @@ -34,22 +34,19 @@ class CalendarsControllerTest < Redmine::ControllerTest def test_show get :show, :project_id => 1 assert_response :success - assert_template :partial => '_calendar' - assert_not_nil assigns(:calendar) end def test_show_should_run_custom_queries - @query = IssueQuery.create!(:name => 'Calendar', :visibility => IssueQuery::VISIBILITY_PUBLIC) + @query = IssueQuery.create!(:name => 'Calendar Query', :visibility => IssueQuery::VISIBILITY_PUBLIC) get :show, :query_id => @query.id assert_response :success + assert_select 'h2', :text => 'Calendar Query' end def test_cross_project_calendar get :show assert_response :success - assert_template :partial => '_calendar' - assert_not_nil assigns(:calendar) end def test_week_number_calculation |