remove unneeded Relation#all from RepositoryMercurialTest
git-svn-id: http://svn.redmine.org/redmine/trunk@12576 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
parent
776bf76f46
commit
e41271f2bd
|
@ -102,7 +102,7 @@ class RepositoryMercurialTest < ActiveSupport::TestCase
|
|||
@project.reload
|
||||
assert_equal NUM_REV, @repository.changesets.count
|
||||
# Remove changesets with revision > 2
|
||||
@repository.changesets.all.each {|c| c.destroy if c.revision.to_i > 2}
|
||||
@repository.changesets.each {|c| c.destroy if c.revision.to_i > 2}
|
||||
@project.reload
|
||||
@repository.reload
|
||||
assert_equal 3, @repository.changesets.count
|
||||
|
|
Loading…
Reference in New Issue