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:
parent
f58835f5ad
commit
958612451b
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue