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
|
def test_diff
|
||||||
# Full diff of changeset 3
|
# Full diff of changeset 3
|
||||||
get :diff, :id => PRJ_ID, :rev => 3
|
['inline', 'sbs'].each do |dt|
|
||||||
assert_response :success
|
get :diff, :id => PRJ_ID, :rev => 3, :type => dt
|
||||||
assert_template 'diff'
|
assert_response :success
|
||||||
# Line 11 removed
|
assert_template 'diff'
|
||||||
assert_tag :tag => 'th',
|
# Line 11 removed
|
||||||
:content => /11/,
|
assert_tag :tag => 'th',
|
||||||
:sibling => { :tag => 'td',
|
:content => '11',
|
||||||
:attributes => { :class => /diff_out/ },
|
:sibling => { :tag => 'td',
|
||||||
:content => /Display more information/ }
|
:attributes => { :class => /diff_out/ },
|
||||||
|
:content => /Display more information/ }
|
||||||
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
def test_annotate
|
def test_annotate
|
||||||
|
Loading…
x
Reference in New Issue
Block a user