scm: add compatible functional test fof changing diff revisions label at SCM adapter level.

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@4665 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Toshi MARUYAMA
2011-01-09 09:53:50 +00:00
parent a223a0dffd
commit e4f72a8e3a
2 changed files with 27 additions and 4 deletions
@@ -198,6 +198,8 @@ class RepositoriesSubversionControllerTest < ActionController::TestCase
get :diff, :id => 1, :rev => 3
assert_response :success
assert_template 'diff'
assert_tag :tag => 'h2', :content => /3/
end
def test_directory_diff
@@ -209,6 +211,8 @@ class RepositoriesSubversionControllerTest < ActionController::TestCase
assert_not_nil diff
# 2 files modified
assert_equal 2, Redmine::UnifiedDiff.new(diff).size
assert_tag :tag => 'h2', :content => /2:6/
end
def test_annotate