comparison test/functional/gantts_controller_test.rb @ 38:33d69fee1d99 cannam

* Merge SVN update from default branch
author Chris Cannam <chris.cannam@soundsoftware.ac.uk>
date Fri, 19 Nov 2010 13:41:40 +0000
parents 94944d00e43c
children af80e5618e9b
comparison
equal deleted inserted replaced
29:192d132064a5 38:33d69fee1d99
17 assert_not_nil i.due_date 17 assert_not_nil i.due_date
18 assert_select "div a.issue", /##{i.id}/ 18 assert_select "div a.issue", /##{i.id}/
19 # Issue with on a targeted version should not be in the events but loaded in the html 19 # Issue with on a targeted version should not be in the events but loaded in the html
20 i = Issue.find(2) 20 i = Issue.find(2)
21 assert_select "div a.issue", /##{i.id}/ 21 assert_select "div a.issue", /##{i.id}/
22 end
23
24 should "work without issue due dates" do
25 Issue.update_all("due_date = NULL")
26
27 get :show, :project_id => 1
28 assert_response :success
29 assert_template 'show.html.erb'
30 assert_not_nil assigns(:gantt)
31 end
32
33 should "work without issue and version due dates" do
34 Issue.update_all("due_date = NULL")
35 Version.update_all("effective_date = NULL")
36
37 get :show, :project_id => 1
38 assert_response :success
39 assert_template 'show.html.erb'
40 assert_not_nil assigns(:gantt)
22 end 41 end
23 42
24 should "work cross project" do 43 should "work cross project" do
25 get :show 44 get :show
26 assert_response :success 45 assert_response :success