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