]> source.dussan.org Git - redmine.git/commitdiff
scm: subversion: run both of "inline" and "side by side" diff in functional test_revi...
authorToshi MARUYAMA <marutosijp2@yahoo.co.jp>
Wed, 1 Jun 2011 06:12:13 +0000 (06:12 +0000)
committerToshi MARUYAMA <marutosijp2@yahoo.co.jp>
Wed, 1 Jun 2011 06:12:13 +0000 (06:12 +0000)
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@5981 e93f8b46-1217-0410-a6f0-8f06a7374b81

test/functional/repositories_subversion_controller_test.rb

index 533a2fd8301245388aa0837438bbe2cefc130584..104b12d181f38ebe65595be5ca0046f3c81eb41f 100644 (file)
@@ -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