1
0
mirror of https://github.com/meineerde/redmine.git synced 2026-01-29 10:37:13 +00:00

Misc tests.

git-svn-id: http://svn.redmine.org/redmine/trunk@13745 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Jean-Philippe Lang 2014-12-13 13:24:22 +00:00
parent b8d2d35e95
commit 95f58c69d2

View File

@ -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