scm: git: run both "inline" and "side by side" diff in functional test_diff test.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@5972 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
parent
e9d7e31332
commit
ab75fb1c82
|
@ -192,16 +192,21 @@ class RepositoriesGitControllerTest < ActionController::TestCase
|
||||||
@repository.fetch_changesets
|
@repository.fetch_changesets
|
||||||
@repository.reload
|
@repository.reload
|
||||||
# Full diff of changeset 2f9c0091
|
# Full diff of changeset 2f9c0091
|
||||||
get :diff, :id => PRJ_ID, :rev => '2f9c0091c754a91af7a9c478e36556b4bde8dcf7'
|
['inline', 'sbs'].each do |dt|
|
||||||
assert_response :success
|
get :diff,
|
||||||
assert_template 'diff'
|
:id => PRJ_ID,
|
||||||
# Line 22 removed
|
:rev => '2f9c0091c754a91af7a9c478e36556b4bde8dcf7',
|
||||||
assert_tag :tag => 'th',
|
:type => dt
|
||||||
:content => /22/,
|
assert_response :success
|
||||||
:sibling => { :tag => 'td',
|
assert_template 'diff'
|
||||||
:attributes => { :class => /diff_out/ },
|
# Line 22 removed
|
||||||
:content => /def remove/ }
|
assert_tag :tag => 'th',
|
||||||
assert_tag :tag => 'h2', :content => /2f9c0091/
|
:content => /22/,
|
||||||
|
:sibling => { :tag => 'td',
|
||||||
|
:attributes => { :class => /diff_out/ },
|
||||||
|
:content => /def remove/ }
|
||||||
|
assert_tag :tag => 'h2', :content => /2f9c0091/
|
||||||
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
def test_diff_two_revs
|
def test_diff_two_revs
|
||||||
|
|
Loading…
Reference in New Issue