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

test/unit/repository_bazaar_test.rb

index fe8e3b0dfa3c2a7c6f22f6ddb8092836ec0c9bbc..325e397d63bdbc1d899ba9e9bf71882a914b434b 100644 (file)
@@ -105,7 +105,7 @@ class RepositoryBazaarTest < ActiveSupport::TestCase
       @project.reload
       assert_equal NUM_REV, @repository.changesets.count
       # 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
       @repository.reload
       assert_equal 2, @repository.changesets.count