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:
Jean-Philippe Lang
2012-12-02 20:23:48 +00:00
parent 96fca0b08f
commit 536747b747
29 changed files with 70 additions and 71 deletions
+1 -1
View File
@@ -47,7 +47,7 @@ class RepositorySubversionTest < ActiveSupport::TestCase
assert_equal NUM_REV, @repository.changesets.count
# Remove changesets with revision > 5
@repository.changesets.find(:all).each {|c| c.destroy if c.revision.to_i > 5}
@repository.changesets.all.each {|c| c.destroy if c.revision.to_i > 5}
@project.reload
assert_equal 5, @repository.changesets.count