scm: darcs: 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@5976 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Toshi MARUYAMA 2011-06-01 06:10:13 +00:00
parent b03935fade
commit 6bcdd2a097

View File

@ -91,15 +91,17 @@ class RepositoriesDarcsControllerTest < ActionController::TestCase
@repository.fetch_changesets @repository.fetch_changesets
@repository.reload @repository.reload
# Full diff of changeset 5 # Full diff of changeset 5
get :diff, :id => PRJ_ID, :rev => 5 ['inline', 'sbs'].each do |dt|
assert_response :success get :diff, :id => PRJ_ID, :rev => 5, :type => dt
assert_template 'diff' assert_response :success
# Line 22 removed assert_template 'diff'
assert_tag :tag => 'th', # Line 22 removed
:content => /22/, assert_tag :tag => 'th',
:sibling => { :tag => 'td', :content => '22',
:attributes => { :class => /diff_out/ }, :sibling => { :tag => 'td',
:content => /def remove/ } :attributes => { :class => /diff_out/ },
:content => /def remove/ }
end
end end
else else
puts "Darcs test repository NOT FOUND. Skipping functional tests !!!" puts "Darcs test repository NOT FOUND. Skipping functional tests !!!"