scm: git: use diff_max_lines_displayed setting at test_diff_with_rev_and_path of functional test (#11752)
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@10251 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
parent
8d4c0e5ecd
commit
3581782ec2
|
@ -290,22 +290,24 @@ class RepositoriesGitControllerTest < ActionController::TestCase
|
||||||
@repository.fetch_changesets
|
@repository.fetch_changesets
|
||||||
@project.reload
|
@project.reload
|
||||||
assert_equal NUM_REV, @repository.changesets.count
|
assert_equal NUM_REV, @repository.changesets.count
|
||||||
# Full diff of changeset 2f9c0091
|
with_settings :diff_max_lines_displayed => 1000 do
|
||||||
['inline', 'sbs'].each do |dt|
|
# Full diff of changeset 2f9c0091
|
||||||
get :diff,
|
['inline', 'sbs'].each do |dt|
|
||||||
:id => PRJ_ID,
|
get :diff,
|
||||||
:rev => '2f9c0091c754a91af7a9c478e36556b4bde8dcf7',
|
:id => PRJ_ID,
|
||||||
:path => repository_path_hash(['sources', 'watchers_controller.rb'])[:param],
|
:rev => '2f9c0091c754a91af7a9c478e36556b4bde8dcf7',
|
||||||
:type => dt
|
:path => repository_path_hash(['sources', 'watchers_controller.rb'])[:param],
|
||||||
assert_response :success
|
:type => dt
|
||||||
assert_template 'diff'
|
assert_response :success
|
||||||
# Line 22 removed
|
assert_template 'diff'
|
||||||
assert_tag :tag => 'th',
|
# Line 22 removed
|
||||||
:content => '22',
|
assert_tag :tag => 'th',
|
||||||
:sibling => { :tag => 'td',
|
:content => '22',
|
||||||
:attributes => { :class => /diff_out/ },
|
:sibling => { :tag => 'td',
|
||||||
:content => /def remove/ }
|
:attributes => { :class => /diff_out/ },
|
||||||
assert_tag :tag => 'h2', :content => /2f9c0091/
|
:content => /def remove/ }
|
||||||
|
assert_tag :tag => 'h2', :content => /2f9c0091/
|
||||||
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue