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