summaryrefslogtreecommitdiffstats
path: root/test/functional/issues_controller_test.rb
diff options
context:
space:
mode:
Diffstat (limited to 'test/functional/issues_controller_test.rb')
-rw-r--r--test/functional/issues_controller_test.rb24
1 files changed, 24 insertions, 0 deletions
diff --git a/test/functional/issues_controller_test.rb b/test/functional/issues_controller_test.rb
index 6a4775cbd..8bd1af565 100644
--- a/test/functional/issues_controller_test.rb
+++ b/test/functional/issues_controller_test.rb
@@ -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