##// END OF EJS Templates
scm: bazaar: remove trailing white-spaces from functional test....
Toshi MARUYAMA -
r5764:083b2864c799
parent child
Show More
@@ -1,16 +1,16
1 # redMine - project management software
2 # Copyright (C) 2006-2008 Jean-Philippe Lang
1 # Redmine - project management software
2 # Copyright (C) 2006-2011 Jean-Philippe Lang
3 3 #
4 4 # This program is free software; you can redistribute it and/or
5 5 # modify it under the terms of the GNU General Public License
6 6 # as published by the Free Software Foundation; either version 2
7 7 # of the License, or (at your option) any later version.
8 #
8 #
9 9 # This program is distributed in the hope that it will be useful,
10 10 # but WITHOUT ANY WARRANTY; without even the implied warranty of
11 11 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 12 # GNU General Public License for more details.
13 #
13 #
14 14 # You should have received a copy of the GNU General Public License
15 15 # along with this program; if not, write to the Free Software
16 16 # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
@@ -72,7 +72,7 class RepositoriesBazaarControllerTest < ActionController::TestCase
72 72 assert_equal 'file', entry.kind
73 73 assert_equal 'directory/edit.png', entry.path
74 74 end
75
75
76 76 def test_browse_at_given_revision
77 77 get :show, :id => PRJ_ID, :path => [], :rev => 3
78 78 assert_response :success
@@ -81,14 +81,14 class RepositoriesBazaarControllerTest < ActionController::TestCase
81 81 assert_equal ['directory', 'doc-deleted.txt', 'doc-ls.txt', 'doc-mkdir.txt'],
82 82 assigns(:entries).collect(&:name)
83 83 end
84
84
85 85 def test_changes
86 86 get :changes, :id => PRJ_ID, :path => ['doc-mkdir.txt']
87 87 assert_response :success
88 88 assert_template 'changes'
89 89 assert_tag :tag => 'h2', :content => 'doc-mkdir.txt'
90 90 end
91
91
92 92 def test_entry_show
93 93 get :entry, :id => PRJ_ID, :path => ['directory', 'doc-ls.txt']
94 94 assert_response :success
@@ -99,14 +99,14 class RepositoriesBazaarControllerTest < ActionController::TestCase
99 99 :attributes => { :class => /line-num/ },
100 100 :sibling => { :tag => 'td', :content => /Show help message/ }
101 101 end
102
102
103 103 def test_entry_download
104 104 get :entry, :id => PRJ_ID, :path => ['directory', 'doc-ls.txt'], :format => 'raw'
105 105 assert_response :success
106 106 # File content
107 107 assert @response.body.include?('Show help message')
108 108 end
109
109
110 110 def test_directory_entry
111 111 get :entry, :id => PRJ_ID, :path => ['directory']
112 112 assert_response :success
@@ -123,11 +123,11 class RepositoriesBazaarControllerTest < ActionController::TestCase
123 123 # Line 11 removed
124 124 assert_tag :tag => 'th',
125 125 :content => /11/,
126 :sibling => { :tag => 'td',
126 :sibling => { :tag => 'td',
127 127 :attributes => { :class => /diff_out/ },
128 128 :content => /Display more information/ }
129 129 end
130
130
131 131 def test_annotate
132 132 get :annotate, :id => PRJ_ID, :path => ['doc-mkdir.txt']
133 133 assert_response :success
General Comments 0
You need to be logged in to leave comments. Login now