From 95f58c69d257a9a195ff41d49a95721738841993 Mon Sep 17 00:00:00 2001 From: Jean-Philippe Lang Date: Sat, 13 Dec 2014 13:24:22 +0000 Subject: [PATCH] Misc tests. git-svn-id: http://svn.redmine.org/redmine/trunk@13745 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- test/functional/gantts_controller_test.rb | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/test/functional/gantts_controller_test.rb b/test/functional/gantts_controller_test.rb index 147100b08..68b2e1ae2 100644 --- a/test/functional/gantts_controller_test.rb +++ b/test/functional/gantts_controller_test.rb @@ -43,6 +43,18 @@ class GanttsControllerTest < ActionController::TestCase assert_select "div a.issue", /##{i.id}/ end + def test_gantt_at_minimal_zoom + get :show, :project_id => 1, :zoom => 1 + assert_response :success + assert_equal 1, assigns(:gantt).zoom + end + + def test_gantt_at_maximal_zoom + get :show, :project_id => 1, :zoom => 4 + assert_response :success + assert_equal 4, assigns(:gantt).zoom + end + def test_gantt_should_work_without_issue_due_dates Issue.update_all("due_date = NULL") get :show, :project_id => 1