mirror of
				https://github.com/redmine/redmine.git
				synced 2025-10-31 10:25:55 +01:00 
			
		
		
		
	Cross-project gantt and calendar (#1157).
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@2088 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
		| @@ -155,6 +155,15 @@ class IssuesControllerTest < Test::Unit::TestCase | ||||
|     assert events.include?(i) | ||||
|   end | ||||
|  | ||||
|   def test_cross_project_gantt | ||||
|     get :gantt | ||||
|     assert_response :success | ||||
|     assert_template 'gantt.rhtml' | ||||
|     assert_not_nil assigns(:gantt) | ||||
|     events = assigns(:gantt).events | ||||
|     assert_not_nil events | ||||
|   end | ||||
|  | ||||
|   def test_gantt_export_to_pdf | ||||
|     get :gantt, :project_id => 1, :format => 'pdf' | ||||
|     assert_response :success | ||||
| @@ -162,6 +171,14 @@ class IssuesControllerTest < Test::Unit::TestCase | ||||
|     assert_equal 'application/pdf', @response.content_type | ||||
|     assert_not_nil assigns(:gantt) | ||||
|   end | ||||
|  | ||||
|   def test_cross_project_gantt_export_to_pdf | ||||
|     get :gantt, :format => 'pdf' | ||||
|     assert_response :success | ||||
|     assert_template 'gantt.rfpdf' | ||||
|     assert_equal 'application/pdf', @response.content_type | ||||
|     assert_not_nil assigns(:gantt) | ||||
|   end | ||||
|    | ||||
|   if Object.const_defined?(:Magick) | ||||
|     def test_gantt_image | ||||
| @@ -180,6 +197,13 @@ class IssuesControllerTest < Test::Unit::TestCase | ||||
|     assert_not_nil assigns(:calendar) | ||||
|   end | ||||
|    | ||||
|   def test_cross_project_calendar | ||||
|     get :calendar | ||||
|     assert_response :success | ||||
|     assert_template 'calendar' | ||||
|     assert_not_nil assigns(:calendar) | ||||
|   end | ||||
|    | ||||
|   def test_changes | ||||
|     get :changes, :project_id => 1 | ||||
|     assert_response :success | ||||
|   | ||||
		Reference in New Issue
	
	Block a user