From: Toshi MARUYAMA Date: Wed, 1 Jun 2011 06:12:13 +0000 (+0000) Subject: scm: subversion: run both of "inline" and "side by side" diff in functional test_revi... X-Git-Tag: 1.3.0~1883 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=cb555d98850571398550c5b568818dfe4087eb01;p=redmine.git scm: subversion: run both of "inline" and "side by side" diff in functional test_revision_diff test. git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@5981 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- diff --git a/test/functional/repositories_subversion_controller_test.rb b/test/functional/repositories_subversion_controller_test.rb index 533a2fd83..104b12d18 100644 --- a/test/functional/repositories_subversion_controller_test.rb +++ b/test/functional/repositories_subversion_controller_test.rb @@ -252,11 +252,13 @@ class RepositoriesSubversionControllerTest < ActionController::TestCase def test_revision_diff @repository.fetch_changesets @repository.reload - get :diff, :id => PRJ_ID, :rev => 3 - assert_response :success - assert_template 'diff' - - assert_tag :tag => 'h2', :content => /3/ + ['inline', 'sbs'].each do |dt| + get :diff, :id => PRJ_ID, :rev => 3, :type => dt + assert_response :success + assert_template 'diff' + assert_tag :tag => 'h2', + :content => / 3/ + end end def test_directory_diff