@@ -1,16 +1,16 | |||
|
1 |
# |
|
|
2 |
# Copyright (C) 2006-20 |
|
|
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. |
@@ -58,7 +58,7 class RepositoriesMercurialControllerTest < ActionController::TestCase | |||
|
58 | 58 | if ruby19_non_utf8_pass |
|
59 | 59 | puts "TODO: Mercurial functional test fails in Ruby 1.9 " + |
|
60 | 60 | "and Encoding.default_external is not UTF-8. " + |
|
61 |
"Current value is '#{Encoding.default_external.to_s}'" |
|
|
61 | "Current value is '#{Encoding.default_external.to_s}'" | |
|
62 | 62 | def test_fake; assert true end |
|
63 | 63 | elsif File.directory?(REPOSITORY_PATH) |
|
64 | 64 | def test_show_root |
@@ -187,7 +187,7 class RepositoriesMercurialControllerTest < ActionController::TestCase | |||
|
187 | 187 | assert_template 'changes' |
|
188 | 188 | assert_tag :tag => 'h2', :content => 'edit.png' |
|
189 | 189 | end |
|
190 | ||
|
190 | ||
|
191 | 191 | def test_entry_show |
|
192 | 192 | get :entry, :id => PRJ_ID, :path => ['sources', 'watchers_controller.rb'] |
|
193 | 193 | assert_response :success |
@@ -211,7 +211,7 class RepositoriesMercurialControllerTest < ActionController::TestCase | |||
|
211 | 211 | :content => /Mercurial is a distributed version control system/ } |
|
212 | 212 | end |
|
213 | 213 | end |
|
214 | ||
|
214 | ||
|
215 | 215 | def test_entry_download |
|
216 | 216 | get :entry, :id => PRJ_ID, :path => ['sources', 'watchers_controller.rb'], :format => 'raw' |
|
217 | 217 | assert_response :success |
@@ -245,7 +245,7 class RepositoriesMercurialControllerTest < ActionController::TestCase | |||
|
245 | 245 | # Line 22 removed |
|
246 | 246 | assert_tag :tag => 'th', |
|
247 | 247 | :content => '22', |
|
248 |
:sibling => { :tag => 'td', |
|
|
248 | :sibling => { :tag => 'td', | |
|
249 | 249 | :attributes => { :class => /diff_out/ }, |
|
250 | 250 | :content => /def remove/ } |
|
251 | 251 | assert_tag :tag => 'h2', :content => /4:def6d2f1254a/ |
@@ -277,7 +277,7 class RepositoriesMercurialControllerTest < ActionController::TestCase | |||
|
277 | 277 | assert_template 'diff' |
|
278 | 278 | assert_tag :tag => 'th', |
|
279 | 279 | :content => '2', |
|
280 |
:sibling => { :tag => 'td', |
|
|
280 | :sibling => { :tag => 'td', | |
|
281 | 281 | :attributes => { :class => /diff_in/ }, |
|
282 | 282 | :content => /It is written in Python/ } |
|
283 | 283 | end |
@@ -345,7 +345,6 class RepositoriesMercurialControllerTest < ActionController::TestCase | |||
|
345 | 345 | :tag => 'td' , |
|
346 | 346 | :content => 'jsmith' , |
|
347 | 347 | :attributes => { :class => 'author' }, |
|
348 | ||
|
349 | 348 | } |
|
350 | 349 | assert_tag :tag => 'th', |
|
351 | 350 | :content => '1', |
General Comments 0
You need to be logged in to leave comments.
Login now