]> source.dussan.org Git - redmine.git/commitdiff
Adds a failing test for #6350.
authorJean-Philippe Lang <jp_lang@yahoo.fr>
Fri, 22 Oct 2010 20:32:05 +0000 (20:32 +0000)
committerJean-Philippe Lang <jp_lang@yahoo.fr>
Fri, 22 Oct 2010 20:32:05 +0000 (20:32 +0000)
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@4276 e93f8b46-1217-0410-a6f0-8f06a7374b81

test/functional/gantts_controller_test.rb

index 9aba1d5aa6c0383d593ce7faa2c793ff6e0cd127..2ba4776cb56bdd0cb48d312060c5cf12b8a4f0ca 100644 (file)
@@ -20,6 +20,15 @@ class GanttsControllerTest < ActionController::TestCase
       i = Issue.find(2)
       assert_select "div a.issue", /##{i.id}/
     end
+    
+    should "work without issue due dates" do
+      Issue.update_all("due_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