scm: git: run both "inline" and "side by side" diff in functional test_diff_two_revs test.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@5973 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
parent
ab75fb1c82
commit
cb460ada33
|
@ -212,15 +212,19 @@ class RepositoriesGitControllerTest < ActionController::TestCase
|
|||
def test_diff_two_revs
|
||||
@repository.fetch_changesets
|
||||
@repository.reload
|
||||
get :diff, :id => PRJ_ID,
|
||||
['inline', 'sbs'].each do |dt|
|
||||
get :diff,
|
||||
:id => PRJ_ID,
|
||||
:rev => '61b685fbe55ab05b5ac68402d5720c1a6ac973d1',
|
||||
:rev_to => '2f9c0091c754a91af7a9c478e36556b4bde8dcf7'
|
||||
:rev_to => '2f9c0091c754a91af7a9c478e36556b4bde8dcf7',
|
||||
:type => dt
|
||||
assert_response :success
|
||||
assert_template 'diff'
|
||||
diff = assigns(:diff)
|
||||
assert_not_nil diff
|
||||
assert_tag :tag => 'h2', :content => /2f9c0091:61b685fb/
|
||||
end
|
||||
end
|
||||
|
||||
def test_diff_latin_1
|
||||
if @ruby19_non_utf8_pass
|
||||
|
|
Loading…
Reference in New Issue