scm: mercurial: run both of "inline" and "side by side" diff in functional test_diff_two_revs test.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@5984 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
parent
bc8b1c0b22
commit
45cce005d2
|
@ -282,14 +282,19 @@ class RepositoriesMercurialControllerTest < ActionController::TestCase
|
||||||
@repository.reload
|
@repository.reload
|
||||||
[2, '400bb8672109', '400', 400].each do |r1|
|
[2, '400bb8672109', '400', 400].each do |r1|
|
||||||
[4, 'def6d2f1254a'].each do |r2|
|
[4, 'def6d2f1254a'].each do |r2|
|
||||||
get :diff, :id => PRJ_ID, :rev => r1,
|
['inline', 'sbs'].each do |dt|
|
||||||
:rev_to => r2
|
get :diff,
|
||||||
assert_response :success
|
:id => PRJ_ID,
|
||||||
assert_template 'diff'
|
:rev => r1,
|
||||||
|
:rev_to => r2,
|
||||||
diff = assigns(:diff)
|
:type => dt
|
||||||
assert_not_nil diff
|
assert_response :success
|
||||||
assert_tag :tag => 'h2', :content => /4:def6d2f1254a 2:400bb8672109/
|
assert_template 'diff'
|
||||||
|
diff = assigns(:diff)
|
||||||
|
assert_not_nil diff
|
||||||
|
assert_tag :tag => 'h2',
|
||||||
|
:content => /4:def6d2f1254a 2:400bb8672109/
|
||||||
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue