Mercurial > hg > soundsoftware-site
diff test/functional/.svn/text-base/gantts_controller_test.rb.svn-base @ 37:94944d00e43c
* Update to SVN trunk rev 4411
author | Chris Cannam <chris.cannam@soundsoftware.ac.uk> |
---|---|
date | Fri, 19 Nov 2010 13:24:41 +0000 |
parents | 40f7cfd4df19 |
children | af80e5618e9b |
line wrap: on
line diff
--- a/test/functional/.svn/text-base/gantts_controller_test.rb.svn-base Fri Sep 24 14:06:04 2010 +0100 +++ b/test/functional/.svn/text-base/gantts_controller_test.rb.svn-base Fri Nov 19 13:24:41 2010 +0000 @@ -20,6 +20,25 @@ 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 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