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

test/functional/repositories_darcs_controller_test.rb

index 6b4c004d2fa3a23a2f688c948e688b9a0c9c4b2a..5ad37b014f4e505f53ab928db206cdd04cbded5a 100644 (file)
@@ -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 !!!"