1
0
mirror of https://github.com/meineerde/redmine.git synced 2025-12-19 15:01:14 +00:00

scm: bazaar: remove trailing white-spaces from functional test.

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@5884 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Toshi MARUYAMA 2011-05-24 01:47:53 +00:00
parent 5977d1be20
commit 083b2864c7

View File

@ -1,16 +1,16 @@
# redMine - project management software # Redmine - project management software
# Copyright (C) 2006-2008 Jean-Philippe Lang # Copyright (C) 2006-2011 Jean-Philippe Lang
# #
# This program is free software; you can redistribute it and/or # This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License # modify it under the terms of the GNU General Public License
# as published by the Free Software Foundation; either version 2 # as published by the Free Software Foundation; either version 2
# of the License, or (at your option) any later version. # of the License, or (at your option) any later version.
# #
# This program is distributed in the hope that it will be useful, # This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of # but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details. # GNU General Public License for more details.
# #
# You should have received a copy of the GNU General Public License # You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software # along with this program; if not, write to the Free Software
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
@ -72,7 +72,7 @@ class RepositoriesBazaarControllerTest < ActionController::TestCase
assert_equal 'file', entry.kind assert_equal 'file', entry.kind
assert_equal 'directory/edit.png', entry.path assert_equal 'directory/edit.png', entry.path
end end
def test_browse_at_given_revision def test_browse_at_given_revision
get :show, :id => PRJ_ID, :path => [], :rev => 3 get :show, :id => PRJ_ID, :path => [], :rev => 3
assert_response :success assert_response :success
@ -81,14 +81,14 @@ class RepositoriesBazaarControllerTest < ActionController::TestCase
assert_equal ['directory', 'doc-deleted.txt', 'doc-ls.txt', 'doc-mkdir.txt'], assert_equal ['directory', 'doc-deleted.txt', 'doc-ls.txt', 'doc-mkdir.txt'],
assigns(:entries).collect(&:name) assigns(:entries).collect(&:name)
end end
def test_changes def test_changes
get :changes, :id => PRJ_ID, :path => ['doc-mkdir.txt'] get :changes, :id => PRJ_ID, :path => ['doc-mkdir.txt']
assert_response :success assert_response :success
assert_template 'changes' assert_template 'changes'
assert_tag :tag => 'h2', :content => 'doc-mkdir.txt' assert_tag :tag => 'h2', :content => 'doc-mkdir.txt'
end end
def test_entry_show def test_entry_show
get :entry, :id => PRJ_ID, :path => ['directory', 'doc-ls.txt'] get :entry, :id => PRJ_ID, :path => ['directory', 'doc-ls.txt']
assert_response :success assert_response :success
@ -99,14 +99,14 @@ class RepositoriesBazaarControllerTest < ActionController::TestCase
:attributes => { :class => /line-num/ }, :attributes => { :class => /line-num/ },
:sibling => { :tag => 'td', :content => /Show help message/ } :sibling => { :tag => 'td', :content => /Show help message/ }
end end
def test_entry_download def test_entry_download
get :entry, :id => PRJ_ID, :path => ['directory', 'doc-ls.txt'], :format => 'raw' get :entry, :id => PRJ_ID, :path => ['directory', 'doc-ls.txt'], :format => 'raw'
assert_response :success assert_response :success
# File content # File content
assert @response.body.include?('Show help message') assert @response.body.include?('Show help message')
end end
def test_directory_entry def test_directory_entry
get :entry, :id => PRJ_ID, :path => ['directory'] get :entry, :id => PRJ_ID, :path => ['directory']
assert_response :success assert_response :success
@ -123,11 +123,11 @@ class RepositoriesBazaarControllerTest < ActionController::TestCase
# Line 11 removed # Line 11 removed
assert_tag :tag => 'th', assert_tag :tag => 'th',
:content => /11/, :content => /11/,
:sibling => { :tag => 'td', :sibling => { :tag => 'td',
:attributes => { :class => /diff_out/ }, :attributes => { :class => /diff_out/ },
:content => /Display more information/ } :content => /Display more information/ }
end end
def test_annotate def test_annotate
get :annotate, :id => PRJ_ID, :path => ['doc-mkdir.txt'] get :annotate, :id => PRJ_ID, :path => ['doc-mkdir.txt']
assert_response :success assert_response :success