scm: cvs: run both of "inline" and "side by side" diff in functional test_diff test.

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@5977 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Toshi MARUYAMA 2011-06-01 06:10:37 +00:00
parent 6bcdd2a097
commit 28f3d9a871
1 changed files with 9 additions and 7 deletions

View File

@ -143,13 +143,15 @@ class RepositoriesCvsControllerTest < ActionController::TestCase
def test_diff def test_diff
@repository.fetch_changesets @repository.fetch_changesets
@repository.reload @repository.reload
get :diff, :id => PRJ_ID, :rev => 3, :type => 'inline' ['inline', 'sbs'].each do |dt|
assert_response :success get :diff, :id => PRJ_ID, :rev => 3, :type => dt
assert_template 'diff' assert_response :success
assert_tag :tag => 'td', :attributes => { :class => 'line-code diff_out' }, assert_template 'diff'
:content => /before_filter :require_login/ assert_tag :tag => 'td', :attributes => { :class => 'line-code diff_out' },
assert_tag :tag => 'td', :attributes => { :class => 'line-code diff_in' }, :content => /before_filter :require_login/
:content => /with one change/ assert_tag :tag => 'td', :attributes => { :class => 'line-code diff_in' },
:content => /with one change/
end
end end
def test_diff_new_files def test_diff_new_files