remove unneeded Relation#all from RepositoryBazaarTest
git-svn-id: http://svn.redmine.org/redmine/trunk@12573 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
parent
ac72e7a8d5
commit
890851eb85
|
@ -105,7 +105,7 @@ class RepositoryBazaarTest < ActiveSupport::TestCase
|
||||||
@project.reload
|
@project.reload
|
||||||
assert_equal NUM_REV, @repository.changesets.count
|
assert_equal NUM_REV, @repository.changesets.count
|
||||||
# Remove changesets with revision > 5
|
# Remove changesets with revision > 5
|
||||||
@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
|
@project.reload
|
||||||
@repository.reload
|
@repository.reload
|
||||||
assert_equal 2, @repository.changesets.count
|
assert_equal 2, @repository.changesets.count
|
||||||
|
|
Loading…
Reference in New Issue