Fix the tests that were broken by r4286:
"Refactor: merged error rendering methods." http://ci.finn.de/builds/1-8-7_redmine-trunk_mysql/4286 git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@4289 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
parent
d9f2bccf70
commit
0e951c0716
@ -106,7 +106,7 @@ class RepositoriesCvsControllerTest < ActionController::TestCase
|
|||||||
|
|
||||||
def test_entry_not_found
|
def test_entry_not_found
|
||||||
get :entry, :id => 1, :path => ['sources', 'zzz.c']
|
get :entry, :id => 1, :path => ['sources', 'zzz.c']
|
||||||
assert_tag :tag => 'div', :attributes => { :class => /error/ },
|
assert_tag :tag => 'p', :attributes => { :id => /errorExplanation/ },
|
||||||
:content => /The entry or revision was not found in the repository/
|
:content => /The entry or revision was not found in the repository/
|
||||||
end
|
end
|
||||||
|
|
||||||
|
@ -154,7 +154,7 @@ class RepositoriesGitControllerTest < ActionController::TestCase
|
|||||||
def test_annotate_binary_file
|
def test_annotate_binary_file
|
||||||
get :annotate, :id => 3, :path => ['images', 'edit.png']
|
get :annotate, :id => 3, :path => ['images', 'edit.png']
|
||||||
assert_response 500
|
assert_response 500
|
||||||
assert_tag :tag => 'div', :attributes => { :class => /error/ },
|
assert_tag :tag => 'p', :attributes => { :id => /errorExplanation/ },
|
||||||
:content => /can not be annotated/
|
:content => /can not be annotated/
|
||||||
end
|
end
|
||||||
else
|
else
|
||||||
|
@ -129,7 +129,7 @@ class RepositoriesSubversionControllerTest < ActionController::TestCase
|
|||||||
|
|
||||||
def test_entry_not_found
|
def test_entry_not_found
|
||||||
get :entry, :id => 1, :path => ['subversion_test', 'zzz.c']
|
get :entry, :id => 1, :path => ['subversion_test', 'zzz.c']
|
||||||
assert_tag :tag => 'div', :attributes => { :class => /error/ },
|
assert_tag :tag => 'p', :attributes => { :id => /errorExplanation/ },
|
||||||
:content => /The entry or revision was not found in the repository/
|
:content => /The entry or revision was not found in the repository/
|
||||||
end
|
end
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user