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

test/unit/repository_darcs_test.rb

index 7a7b402f566f81d53e078f3cbe7bf75ffb1d72bf..b17dd7cbaadd2ba81dc3f0793adae016e42453a5 100644 (file)
@@ -79,7 +79,7 @@ class RepositoryDarcsTest < ActiveSupport::TestCase
       assert_equal NUM_REV, @repository.changesets.count
 
       # 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
       @repository.reload
       assert_equal 3, @repository.changesets.count