Merged r10251 from trunk to 1.4-stable (#11752)

scm: git: use diff_max_lines_displayed setting at test_diff_with_rev_and_path of functional test.

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/branches/1.4-stable@10258 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Toshi MARUYAMA committed 2012-09-01 05:08:06 +00:00
1 parent 2516d4f408
commit b3a86771ce
1 file changed
+2
@@ -292,6 +292,7 @@ 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
with_settings :diff_max_lines_displayed => 1000 do
# Full diff of changeset 2f9c0091 # Full diff of changeset 2f9c0091
['inline', 'sbs'].each do |dt| ['inline', 'sbs'].each do |dt|
get :diff, get :diff,
@@ -310,6 +311,7 @@ class RepositoriesGitControllerTest < ActionController::TestCase
assert_tag :tag => 'h2', :content => /2f9c0091/ assert_tag :tag => 'h2', :content => /2f9c0091/
end end
end end
end
def test_diff_truncated def test_diff_truncated
assert_equal 0, @repository.changesets.count assert_equal 0, @repository.changesets.count