]> source.dussan.org Git - redmine.git/commitdiff
Fix the tests that were broken by r4286:
authorEric Davis <edavis@littlestreamsoftware.com>
Mon, 25 Oct 2010 15:42:41 +0000 (15:42 +0000)
committerEric Davis <edavis@littlestreamsoftware.com>
Mon, 25 Oct 2010 15:42:41 +0000 (15:42 +0000)
"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

test/functional/repositories_cvs_controller_test.rb
test/functional/repositories_git_controller_test.rb
test/functional/repositories_subversion_controller_test.rb

index f3d4ecfe1c26188cf562611aa14671aa74d8ef73..fa604dc815578a7c652b2be9544214c4af1a9d9a 100644 (file)
@@ -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
   
index 941fbcf1bf2db251d42bfc367247b2c718cafb88..326a53038c2357ed2556ccf98ca1f05f8587e609 100644 (file)
@@ -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
index 7c88f253224e1badc1b5debdbdc185da8e573926..7cc2cbfc22bc562dafb9c1c8156e72e3d3d67e9b 100644 (file)
@@ -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