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

test/functional/repositories_bazaar_controller_test.rb

index 9b50e899978e18586a32932128632c23ba47b904..fb9438c059ee36cfff98d434be3dccfcb3b802ae 100644 (file)
@@ -110,15 +110,17 @@ class RepositoriesBazaarControllerTest < ActionController::TestCase
 
     def test_diff
       # Full diff of changeset 3
-      get :diff, :id => PRJ_ID, :rev => 3
-      assert_response :success
-      assert_template 'diff'
-      # Line 11 removed
-      assert_tag :tag => 'th',
-                 :content => /11/,
-                 :sibling => { :tag => 'td',
-                               :attributes => { :class => /diff_out/ },
-                               :content => /Display more information/ }
+      ['inline', 'sbs'].each do |dt|
+        get :diff, :id => PRJ_ID, :rev => 3, :type => dt
+        assert_response :success
+        assert_template 'diff'
+        # Line 11 removed
+        assert_tag :tag => 'th',
+                   :content => '11',
+                   :sibling => { :tag => 'td',
+                                 :attributes => { :class => /diff_out/ },
+                                 :content => /Display more information/ }
+      end
     end
 
     def test_annotate