@@ -1,16 +1,16 | |||||
1 |
# |
|
1 | # Redmine - project management software | |
2 |
# Copyright (C) 2006-20 |
|
2 | # Copyright (C) 2006-2011 Jean-Philippe Lang | |
3 | # |
|
3 | # | |
4 | # This program is free software; you can redistribute it and/or |
|
4 | # This program is free software; you can redistribute it and/or | |
5 | # modify it under the terms of the GNU General Public License |
|
5 | # modify it under the terms of the GNU General Public License | |
6 | # as published by the Free Software Foundation; either version 2 |
|
6 | # as published by the Free Software Foundation; either version 2 | |
7 | # of the License, or (at your option) any later version. |
|
7 | # of the License, or (at your option) any later version. | |
8 |
# |
|
8 | # | |
9 | # This program is distributed in the hope that it will be useful, |
|
9 | # This program is distributed in the hope that it will be useful, | |
10 | # but WITHOUT ANY WARRANTY; without even the implied warranty of |
|
10 | # but WITHOUT ANY WARRANTY; without even the implied warranty of | |
11 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
|
11 | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | |
12 | # GNU General Public License for more details. |
|
12 | # GNU General Public License for more details. | |
13 |
# |
|
13 | # | |
14 | # You should have received a copy of the GNU General Public License |
|
14 | # You should have received a copy of the GNU General Public License | |
15 | # along with this program; if not, write to the Free Software |
|
15 | # along with this program; if not, write to the Free Software | |
16 | # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. |
|
16 | # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. | |
@@ -58,7 +58,7 class RepositoriesMercurialControllerTest < ActionController::TestCase | |||||
58 | if ruby19_non_utf8_pass |
|
58 | if ruby19_non_utf8_pass | |
59 | puts "TODO: Mercurial functional test fails in Ruby 1.9 " + |
|
59 | puts "TODO: Mercurial functional test fails in Ruby 1.9 " + | |
60 | "and Encoding.default_external is not UTF-8. " + |
|
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 | def test_fake; assert true end |
|
62 | def test_fake; assert true end | |
63 | elsif File.directory?(REPOSITORY_PATH) |
|
63 | elsif File.directory?(REPOSITORY_PATH) | |
64 | def test_show_root |
|
64 | def test_show_root | |
@@ -187,7 +187,7 class RepositoriesMercurialControllerTest < ActionController::TestCase | |||||
187 | assert_template 'changes' |
|
187 | assert_template 'changes' | |
188 | assert_tag :tag => 'h2', :content => 'edit.png' |
|
188 | assert_tag :tag => 'h2', :content => 'edit.png' | |
189 | end |
|
189 | end | |
190 |
|
190 | |||
191 | def test_entry_show |
|
191 | def test_entry_show | |
192 | get :entry, :id => PRJ_ID, :path => ['sources', 'watchers_controller.rb'] |
|
192 | get :entry, :id => PRJ_ID, :path => ['sources', 'watchers_controller.rb'] | |
193 | assert_response :success |
|
193 | assert_response :success | |
@@ -211,7 +211,7 class RepositoriesMercurialControllerTest < ActionController::TestCase | |||||
211 | :content => /Mercurial is a distributed version control system/ } |
|
211 | :content => /Mercurial is a distributed version control system/ } | |
212 | end |
|
212 | end | |
213 | end |
|
213 | end | |
214 |
|
214 | |||
215 | def test_entry_download |
|
215 | def test_entry_download | |
216 | get :entry, :id => PRJ_ID, :path => ['sources', 'watchers_controller.rb'], :format => 'raw' |
|
216 | get :entry, :id => PRJ_ID, :path => ['sources', 'watchers_controller.rb'], :format => 'raw' | |
217 | assert_response :success |
|
217 | assert_response :success | |
@@ -245,7 +245,7 class RepositoriesMercurialControllerTest < ActionController::TestCase | |||||
245 | # Line 22 removed |
|
245 | # Line 22 removed | |
246 | assert_tag :tag => 'th', |
|
246 | assert_tag :tag => 'th', | |
247 | :content => '22', |
|
247 | :content => '22', | |
248 |
:sibling => { :tag => 'td', |
|
248 | :sibling => { :tag => 'td', | |
249 | :attributes => { :class => /diff_out/ }, |
|
249 | :attributes => { :class => /diff_out/ }, | |
250 | :content => /def remove/ } |
|
250 | :content => /def remove/ } | |
251 | assert_tag :tag => 'h2', :content => /4:def6d2f1254a/ |
|
251 | assert_tag :tag => 'h2', :content => /4:def6d2f1254a/ | |
@@ -277,7 +277,7 class RepositoriesMercurialControllerTest < ActionController::TestCase | |||||
277 | assert_template 'diff' |
|
277 | assert_template 'diff' | |
278 | assert_tag :tag => 'th', |
|
278 | assert_tag :tag => 'th', | |
279 | :content => '2', |
|
279 | :content => '2', | |
280 |
:sibling => { :tag => 'td', |
|
280 | :sibling => { :tag => 'td', | |
281 | :attributes => { :class => /diff_in/ }, |
|
281 | :attributes => { :class => /diff_in/ }, | |
282 | :content => /It is written in Python/ } |
|
282 | :content => /It is written in Python/ } | |
283 | end |
|
283 | end | |
@@ -345,7 +345,6 class RepositoriesMercurialControllerTest < ActionController::TestCase | |||||
345 | :tag => 'td' , |
|
345 | :tag => 'td' , | |
346 | :content => 'jsmith' , |
|
346 | :content => 'jsmith' , | |
347 | :attributes => { :class => 'author' }, |
|
347 | :attributes => { :class => 'author' }, | |
348 |
|
||||
349 | } |
|
348 | } | |
350 | assert_tag :tag => 'th', |
|
349 | assert_tag :tag => 'th', | |
351 | :content => '1', |
|
350 | :content => '1', |
General Comments 0
You need to be logged in to leave comments.
Login now