remove trailing white-spaces from test/functional/gantts_controller_test.rb.

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@6817 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Toshi MARUYAMA 2011-08-30 15:53:33 +00:00
parent 39d77565e0
commit e7464f2b62
1 changed files with 7 additions and 7 deletions

View File

@ -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