summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEric Davis <edavis@littlestreamsoftware.com>2010-10-25 15:42:41 +0000
committerEric Davis <edavis@littlestreamsoftware.com>2010-10-25 15:42:41 +0000
commit0e951c071631fee35962b264d3db2c68961bf670 (patch)
treec5a2dddca8edeb1782df54554a6838ad105cc5d4
parentd9f2bccf7092a50ba34f100b9a73d89e5b678bf7 (diff)
downloadredmine-0e951c071631fee35962b264d3db2c68961bf670.tar.gz
redmine-0e951c071631fee35962b264d3db2c68961bf670.zip
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
-rw-r--r--test/functional/repositories_cvs_controller_test.rb2
-rw-r--r--test/functional/repositories_git_controller_test.rb2
-rw-r--r--test/functional/repositories_subversion_controller_test.rb2
3 files changed, 3 insertions, 3 deletions
diff --git a/test/functional/repositories_cvs_controller_test.rb b/test/functional/repositories_cvs_controller_test.rb
index f3d4ecfe1..fa604dc81 100644
--- a/test/functional/repositories_cvs_controller_test.rb
+++ b/test/functional/repositories_cvs_controller_test.rb
@@ -106,7 +106,7 @@ class RepositoriesCvsControllerTest < ActionController::TestCase
def test_entry_not_found
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/
end
diff --git a/test/functional/repositories_git_controller_test.rb b/test/functional/repositories_git_controller_test.rb
index 941fbcf1b..326a53038 100644
--- a/test/functional/repositories_git_controller_test.rb
+++ b/test/functional/repositories_git_controller_test.rb
@@ -154,7 +154,7 @@ class RepositoriesGitControllerTest < ActionController::TestCase
def test_annotate_binary_file
get :annotate, :id => 3, :path => ['images', 'edit.png']
assert_response 500
- assert_tag :tag => 'div', :attributes => { :class => /error/ },
+ assert_tag :tag => 'p', :attributes => { :id => /errorExplanation/ },
:content => /can not be annotated/
end
else
diff --git a/test/functional/repositories_subversion_controller_test.rb b/test/functional/repositories_subversion_controller_test.rb
index 7c88f2532..7cc2cbfc2 100644
--- a/test/functional/repositories_subversion_controller_test.rb
+++ b/test/functional/repositories_subversion_controller_test.rb
@@ -129,7 +129,7 @@ class RepositoriesSubversionControllerTest < ActionController::TestCase
def test_entry_not_found
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/
end