Replaces find(:all) calls.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@10917 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
@@ -116,7 +116,7 @@ class RepositoryCvsTest < ActiveSupport::TestCase
|
||||
assert_equal CHANGESETS_NUM, @repository.changesets.count
|
||||
|
||||
# Remove changesets with revision > 3
|
||||
@repository.changesets.find(:all).each {|c| c.destroy if c.revision.to_i > 3}
|
||||
@repository.changesets.all.each {|c| c.destroy if c.revision.to_i > 3}
|
||||
@project.reload
|
||||
assert_equal 3, @repository.changesets.count
|
||||
assert_equal %w|3 2 1|, @repository.changesets.all.collect(&:revision)
|
||||
|
||||
Reference in New Issue
Block a user