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

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@5978 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Toshi MARUYAMA 2011-06-01 06:11:02 +00:00
parent 28f3d9a871
commit f58835f5ad
1 changed files with 15 additions and 13 deletions

View File

@ -157,19 +157,21 @@ class RepositoriesCvsControllerTest < ActionController::TestCase
def test_diff_new_files def test_diff_new_files
@repository.fetch_changesets @repository.fetch_changesets
@repository.reload @repository.reload
get :diff, :id => PRJ_ID, :rev => 1, :type => 'inline' ['inline', 'sbs'].each do |dt|
assert_response :success get :diff, :id => PRJ_ID, :rev => 1, :type => dt
assert_template 'diff' assert_response :success
assert_tag :tag => 'td', :attributes => { :class => 'line-code diff_in' }, assert_template 'diff'
:content => /watched.remove_watcher/ assert_tag :tag => 'td', :attributes => { :class => 'line-code diff_in' },
assert_tag :tag => 'th', :attributes => { :class => 'filename' }, :content => /watched.remove_watcher/
:content => /test\/README/ assert_tag :tag => 'th', :attributes => { :class => 'filename' },
assert_tag :tag => 'th', :attributes => { :class => 'filename' }, :content => /test\/README/
:content => /test\/images\/delete.png / assert_tag :tag => 'th', :attributes => { :class => 'filename' },
assert_tag :tag => 'th', :attributes => { :class => 'filename' }, :content => /test\/images\/delete.png /
:content => /test\/images\/edit.png/ assert_tag :tag => 'th', :attributes => { :class => 'filename' },
assert_tag :tag => 'th', :attributes => { :class => 'filename' }, :content => /test\/images\/edit.png/
:content => /test\/sources\/watchers_controller.rb/ assert_tag :tag => 'th', :attributes => { :class => 'filename' },
:content => /test\/sources\/watchers_controller.rb/
end
end end
def test_annotate def test_annotate