scm: bazaar: 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@5979 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Toshi MARUYAMA 2011-06-01 06:11:28 +00:00
parent f58835f5ad
commit 958612451b
1 changed files with 11 additions and 9 deletions

View 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