diff --git a/test/functional/gantts_controller_test.rb b/test/functional/gantts_controller_test.rb index 25113b063..5d8370cf2 100644 --- a/test/functional/gantts_controller_test.rb +++ b/test/functional/gantts_controller_test.rb @@ -7,7 +7,7 @@ class GanttsControllerTest < ActionController::TestCase should "work" do i2 = Issue.find(2) i2.update_attribute(:due_date, 1.month.from_now) - + get :show, :project_id => 1 assert_response :success assert_template 'show.html.erb' @@ -20,20 +20,20 @@ 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 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' @@ -53,7 +53,7 @@ class GanttsControllerTest < ActionController::TestCase get :show assert_response :success assert_template 'show.html.erb' - + assert_tag 'a', :content => /eCookbook/ # Root private project assert_no_tag 'a', {:content => /OnlineStore/} @@ -76,7 +76,7 @@ class GanttsControllerTest < ActionController::TestCase assert @response.body.starts_with?('%PDF') assert_not_nil assigns(:gantt) end - + should "export to png" do get :show, :project_id => 1, :format => 'png' assert_response :success