]> source.dussan.org Git - redmine.git/commitdiff
remove unneeded Relation#all from RepositoryMercurialTest
authorToshi MARUYAMA <marutosijp2@yahoo.co.jp>
Thu, 9 Jan 2014 09:55:10 +0000 (09:55 +0000)
committerToshi MARUYAMA <marutosijp2@yahoo.co.jp>
Thu, 9 Jan 2014 09:55:10 +0000 (09:55 +0000)
git-svn-id: http://svn.redmine.org/redmine/trunk@12576 e93f8b46-1217-0410-a6f0-8f06a7374b81

test/unit/repository_mercurial_test.rb

index 207528b5365384452ef2905318f57b5736892b41..4bf53c02c3ed748aa8f96dc23e7071375886b6a4 100644 (file)
@@ -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