@@ -7,7 +7,7 class GanttsControllerTest < ActionController::TestCase | |||
|
7 | 7 | should "work" do |
|
8 | 8 | i2 = Issue.find(2) |
|
9 | 9 | i2.update_attribute(:due_date, 1.month.from_now) |
|
10 | ||
|
10 | ||
|
11 | 11 | get :show, :project_id => 1 |
|
12 | 12 | assert_response :success |
|
13 | 13 | assert_template 'show.html.erb' |
@@ -20,20 +20,20 class GanttsControllerTest < ActionController::TestCase | |||
|
20 | 20 | i = Issue.find(2) |
|
21 | 21 | assert_select "div a.issue", /##{i.id}/ |
|
22 | 22 | end |
|
23 | ||
|
23 | ||
|
24 | 24 | should "work without issue due dates" do |
|
25 | 25 | Issue.update_all("due_date = NULL") |
|
26 | ||
|
26 | ||
|
27 | 27 | get :show, :project_id => 1 |
|
28 | 28 | assert_response :success |
|
29 | 29 | assert_template 'show.html.erb' |
|
30 | 30 | assert_not_nil assigns(:gantt) |
|
31 | 31 | end |
|
32 | ||
|
32 | ||
|
33 | 33 | should "work without issue and version due dates" do |
|
34 | 34 | Issue.update_all("due_date = NULL") |
|
35 | 35 | Version.update_all("effective_date = NULL") |
|
36 | ||
|
36 | ||
|
37 | 37 | get :show, :project_id => 1 |
|
38 | 38 | assert_response :success |
|
39 | 39 | assert_template 'show.html.erb' |
@@ -53,7 +53,7 class GanttsControllerTest < ActionController::TestCase | |||
|
53 | 53 | get :show |
|
54 | 54 | assert_response :success |
|
55 | 55 | assert_template 'show.html.erb' |
|
56 | ||
|
56 | ||
|
57 | 57 | assert_tag 'a', :content => /eCookbook/ |
|
58 | 58 | # Root private project |
|
59 | 59 | assert_no_tag 'a', {:content => /OnlineStore/} |
@@ -76,7 +76,7 class GanttsControllerTest < ActionController::TestCase | |||
|
76 | 76 | assert @response.body.starts_with?('%PDF') |
|
77 | 77 | assert_not_nil assigns(:gantt) |
|
78 | 78 | end |
|
79 | ||
|
79 | ||
|
80 | 80 | should "export to png" do |
|
81 | 81 | get :show, :project_id => 1, :format => 'png' |
|
82 | 82 | assert_response :success |
General Comments 0
You need to be logged in to leave comments.
Login now