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,6 +290,7 @@ class RepositoriesGitControllerTest < ActionController::TestCase
|
|||
@repository.fetch_changesets
|
||||
@project.reload
|
||||
assert_equal NUM_REV, @repository.changesets.count
|
||||
with_settings :diff_max_lines_displayed => 1000 do
|
||||
# Full diff of changeset 2f9c0091
|
||||
['inline', 'sbs'].each do |dt|
|
||||
get :diff,
|
||||
|
@ -308,6 +309,7 @@ class RepositoriesGitControllerTest < ActionController::TestCase
|
|||
assert_tag :tag => 'h2', :content => /2f9c0091/
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
def test_diff_truncated
|
||||
assert_equal 0, @repository.changesets.count
|
||||
|
|
Loading…
Reference in New Issue