comparison test/functional/.svn/text-base/gantts_controller_test.rb.svn-base @ 41:7f0e922c8982 luisf

merged with new version from trunk
author luisf
date Fri, 19 Nov 2010 14:45:28 +0000
parents 94944d00e43c
children af80e5618e9b
comparison
equal deleted inserted replaced
35:67e8aef29de9 41:7f0e922c8982
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