Fixed: error on gantt when no issue have a due date (#6350).

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@4280 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Jean-Philippe Lang
2010-10-22 22:13:39 +00:00
parent b7e3f80e14
commit ed608cb7d3
2 changed files with 14 additions and 4 deletions
+11 -1
View File
@@ -21,7 +21,7 @@ class GanttsControllerTest < ActionController::TestCase
assert_select "div a.issue", /##{i.id}/
end
should_eventually "work without issue due dates" do
should "work without issue due dates" do
Issue.update_all("due_date = NULL")
get :show, :project_id => 1
@@ -29,6 +29,16 @@ class GanttsControllerTest < ActionController::TestCase
assert_template 'show.html.erb'
assert_not_nil assigns(:gantt)
end
should "work without issue and version due dates" do
Issue.update_all("due_date = NULL")
Version.update_all("effective_date = NULL")
get :show, :project_id => 1
assert_response :success
assert_template 'show.html.erb'
assert_not_nil assigns(:gantt)
end
should "work cross project" do
get :show