diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2014-12-13 13:24:22 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2014-12-13 13:24:22 +0000 |
commit | 95f58c69d257a9a195ff41d49a95721738841993 (patch) | |
tree | 8ca552604845296f559d3b15b87424772326544b /test/functional | |
parent | b8d2d35e95e8e3c4c6e75f973239205dbd599015 (diff) | |
download | redmine-95f58c69d257a9a195ff41d49a95721738841993.tar.gz redmine-95f58c69d257a9a195ff41d49a95721738841993.zip |
Misc tests.
git-svn-id: http://svn.redmine.org/redmine/trunk@13745 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'test/functional')
-rw-r--r-- | test/functional/gantts_controller_test.rb | 12 |
1 files changed, 12 insertions, 0 deletions
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 |