From: Toshi MARUYAMA Date: Wed, 1 Jun 2011 06:10:13 +0000 (+0000) Subject: scm: darcs: run both of "inline" and "side by side" diff in functional test_diff... X-Git-Tag: 1.3.0~1888 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=6bcdd2a097b24f7f43480908b522fedb9f232d51;p=redmine.git 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 --- diff --git a/test/functional/repositories_darcs_controller_test.rb b/test/functional/repositories_darcs_controller_test.rb index 6b4c004d2..5ad37b014 100644 --- a/test/functional/repositories_darcs_controller_test.rb +++ b/test/functional/repositories_darcs_controller_test.rb @@ -91,15 +91,17 @@ class RepositoriesDarcsControllerTest < ActionController::TestCase @repository.fetch_changesets @repository.reload # Full diff of changeset 5 - get :diff, :id => PRJ_ID, :rev => 5 - assert_response :success - assert_template 'diff' - # Line 22 removed - assert_tag :tag => 'th', - :content => /22/, - :sibling => { :tag => 'td', - :attributes => { :class => /diff_out/ }, - :content => /def remove/ } + ['inline', 'sbs'].each do |dt| + get :diff, :id => PRJ_ID, :rev => 5, :type => dt + assert_response :success + assert_template 'diff' + # Line 22 removed + assert_tag :tag => 'th', + :content => '22', + :sibling => { :tag => 'td', + :attributes => { :class => /diff_out/ }, + :content => /def remove/ } + end end else puts "Darcs test repository NOT FOUND. Skipping functional tests !!!"